Doc: Fix code example in JS API
open is an array. Change-Id: Id942f522d5a671248d65aeb3617aa23dfd9795fe
This commit is contained in:
parent
7cda6c935a
commit
1d56cd75d1
@ -769,7 +769,7 @@ Gerrit.get(url, callback)
|
||||
----
|
||||
Gerrit.get('/changes/?q=status:open', function (open) {
|
||||
for (var i = 0; i < open.length; i++) {
|
||||
console.log(open.get(i).change_id);
|
||||
console.log(open[i].change_id);
|
||||
}
|
||||
});
|
||||
----
|
||||
|
Loading…
Reference in New Issue
Block a user