1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 18:02:29 +01:00
Fixes issue #1273.
This commit is contained in:
Doug Kearns
2015-02-25 23:46:04 +11:00
parent 232a369bc6
commit 1b21d04f68

View File

@@ -88,11 +88,13 @@ var DOM = Class("DOM", {
nodes: Class.Memoize(function () ({})),
get items() (function* () {
for (let i = 0; i < this.length; i++)
/* FIXME: Symbols */
yield this.eq(i);
})(),
get items() {
return function* () {
for (let i = 0; i < this.length; i++)
/* FIXME: Symbols */
yield this.eq(i);
}.call(this);
},
get document() this._document || this[0] && (this[0].ownerDocument || this[0].document || this[0]),
set document(val) this._document = val,