mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 22:54:11 +01:00
Palemoon 28.5 compatibility
This is a patch for compatibility with PM 28.5 based on Billylll@'s patch posted to madand#7.
This commit is contained in:
@@ -1815,7 +1815,7 @@ update(iter, {
|
||||
});
|
||||
|
||||
var Iter = Class("Iter", {
|
||||
init(iter) {
|
||||
init: function (iter) {
|
||||
this.iter = iter;
|
||||
if (!(Symbol.iterator in iter) && "__iterator__" in iter)
|
||||
this.iter = iter.__iterator__();
|
||||
@@ -1826,9 +1826,9 @@ var Iter = Class("Iter", {
|
||||
};
|
||||
},
|
||||
|
||||
next() { return this.iter.next() },
|
||||
next: function () { return this.iter.next() },
|
||||
|
||||
send() { return apply(this.iter, "send", arguments) },
|
||||
send: function () { return apply(this.iter, "send", arguments) },
|
||||
|
||||
"@@iterator": function () { return this.iter },
|
||||
|
||||
|
||||
Reference in New Issue
Block a user