1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 02:42:28 +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:
Jack Rosenthal
2019-05-05 15:40:19 -06:00
parent 4b81d89a3e
commit 00536f5feb
4 changed files with 9 additions and 9 deletions

View File

@@ -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 },

View File

@@ -476,7 +476,7 @@ var Ex = Module("Ex", {
commands: null,
init() {
init: function () {
let proxy = new Proxy(this, {
get(target, prop, receiver) {
if (prop === "isProxy")
@@ -494,7 +494,7 @@ var Ex = Module("Ex", {
return proxy;
},
_args(cmd, args) {
_args: function(cmd, args) {
args = Array.slice(args);
let res = cmd.newArgs({ context: this.context });
@@ -522,7 +522,7 @@ var Ex = Module("Ex", {
return res;
},
_complete(cmd) {
_complete: function (cmd) {
return (context, func, obj, args) => {
args = this._args(cmd, args);
args.completeArg = args.length - 1;
@@ -531,7 +531,7 @@ var Ex = Module("Ex", {
};
},
_run(name) {
_run: function (name) {
const self = this;
let cmd = this.commands.get(name);
util.assert(cmd, _("command.noSuch"));