1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-09 09:45:47 +01:00

Support Firefox 45 (without e10s).

This commit is contained in:
Kris Maglione
2015-12-19 20:09:04 -08:00
parent e3c3748511
commit bc9eb79fb3
41 changed files with 614 additions and 421 deletions

View File

@@ -732,6 +732,16 @@ var JavaScript = Module("javascript", {
init: function init(context) {
this.context = context;
this.results = [];
return new Proxy(this, {
get(target, prop) {
if (prop in target)
return target[prop];
if (prop in Buffer)
return Buffer[prop].bind(Buffer, target.rootNode);
},
});
},
addOutput: function addOutput(js) {
@@ -775,10 +785,6 @@ var JavaScript = Module("javascript", {
return this.rootNode;
}),
__noSuchMethod__: function (meth, args) {
return apply(Buffer, meth, [this.rootNode].concat(args));
}
});
modules.CommandREPLMode = Class("CommandREPLMode", modules.CommandMode, {