mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-15 04:13:32 +01:00
Closes issue #782.
This commit is contained in:
@@ -1491,8 +1491,12 @@ var CommandLine = Module("commandline", {
|
|||||||
this.wildIndex = this.wildtypes.length - 1;
|
this.wildIndex = this.wildtypes.length - 1;
|
||||||
|
|
||||||
if (idx && idx[1] >= idx[0].items.length) {
|
if (idx && idx[1] >= idx[0].items.length) {
|
||||||
this.waiting = idx;
|
if (!idx[0].incomplete)
|
||||||
statusline.progress = _("completion.waitingForResults");
|
this.waiting = null;
|
||||||
|
else {
|
||||||
|
this.waiting = idx;
|
||||||
|
statusline.progress = _("completion.waitingForResults");
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1567,12 +1567,15 @@ var DOM = Class("DOM", {
|
|||||||
null
|
null
|
||||||
);
|
);
|
||||||
|
|
||||||
return Object.create(result, {
|
let res = {
|
||||||
__iterator__: {
|
__iterator__:
|
||||||
value: asIterator ? function () { let elem; while ((elem = this.iterateNext())) yield elem; }
|
asIterator ? function () { let elem; while ((elem = this.iterateNext())) yield elem; }
|
||||||
: function () { for (let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i); }
|
: function () { for (let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i); }
|
||||||
}
|
};
|
||||||
});
|
|
||||||
|
for (let [k, v] in Iterator(result))
|
||||||
|
res[k] = v;
|
||||||
|
return res;
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
throw e.stack ? e : Error(e);
|
throw e.stack ? e : Error(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user