1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 03:02:27 +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

@@ -7,8 +7,22 @@
"use strict";
var MOW = Module("mow", {
init: function init() {
init() {
let proxy = new Proxy(this, {
get(target, prop, receiver) {
if (prop in target)
return target[prop];
if (prop in Buffer)
return Buffer[prop].bind(Buffer, receiver.body);
},
});
proxy._init();
return proxy;
},
_init() {
this._resize = Timer(20, 400, function _resize() {
if (this.visible)
this.resize(false);
@@ -66,10 +80,6 @@ var MOW = Module("mow", {
});
},
__noSuchMethod__: function (meth, args) {
return apply(Buffer, meth, [this.body].concat(args));
},
get widget() { return this.widgets.multilineOutput; },
widgets: Class.Memoize(function widgets() {