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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user