diff options
author | portix <none@none> | 2013-01-26 13:24:31 +0100 |
---|---|---|
committer | portix <none@none> | 2013-01-26 13:24:31 +0100 |
commit | 83da4f3b781fd56d0c88db99c8cc64c86ba6309f (patch) | |
tree | 581b3478c3b934325239f557e70b9aa7e4c6dd97 /scripts | |
parent | 0082dad9b0c87fcb01d7ca72c16eb6a1d7e131db (diff) | |
download | dwb-83da4f3b781fd56d0c88db99c8cc64c86ba6309f.zip |
Implementing tabs.iterate
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", |