1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 12:57:58 +01:00

Closes issue #790.

This commit is contained in:
Kris Maglione
2012-02-15 11:47:25 -05:00
parent df6d85ca3c
commit ada54040f4

View File

@@ -1568,13 +1568,14 @@ var DOM = Class("DOM", {
);
let res = {
iterateNext: function () result.iterateNext(),
get resultType() result.resultType,
get snapshotLength() result.snapshotLength,
snapshotItem: function (i) result.snapshotItem(i),
__iterator__:
asIterator ? function () { let elem; while ((elem = this.iterateNext())) yield elem; }
: 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) {