diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/dwb.js | 2 | ||||
-rw-r--r-- | scripts/lib/signals.js | 6 | ||||
-rw-r--r-- | scripts/lib/util.js | 1 |
3 files changed, 4 insertions, 5 deletions
diff --git a/scripts/lib/dwb.js b/scripts/lib/dwb.js index 5111c9a4..a734c7e5 100644 --- a/scripts/lib/dwb.js +++ b/scripts/lib/dwb.js @@ -171,7 +171,7 @@ { var sig = this.connect(name, (function() { this.blockSignal(sig); - var result = callback.apply(null, arguments); + var result = callback.apply(callback, arguments); this.unblockSignal(sig); return result; }).bind(this)); diff --git a/scripts/lib/signals.js b/scripts/lib/signals.js index dffb429f..a89b1f14 100644 --- a/scripts/lib/signals.js +++ b/scripts/lib/signals.js @@ -86,17 +86,17 @@ value : function(name, callback) { this.connect("createTab", function(wv) { - wv.connect(name, function() { callback.apply(null, arguments);}); + wv.connect(name, function() { callback.apply(callback, arguments);}); }); } }, "disconnect" : { - value : _disconnectByProp.bind(this, "id") + value : _disconnectByProp.bind(null, "id") }, "disconnectByFunction" : { - value : _disconnectByProp.bind(this, "callback") + value : _disconnectByProp.bind(null, "callback") }, "disconnectByName" : { diff --git a/scripts/lib/util.js b/scripts/lib/util.js index 0d9986d1..f104628e 100644 --- a/scripts/lib/util.js +++ b/scripts/lib/util.js @@ -73,7 +73,6 @@ }); Object.freeze(util); - if (Object.prototype.forEach === undefined) { Object.defineProperty(Object.prototype, "forEach", |