summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorportix <none@none>2013-01-26 13:24:31 +0100
committerportix <none@none>2013-01-26 13:24:31 +0100
commit83da4f3b781fd56d0c88db99c8cc64c86ba6309f (patch)
tree581b3478c3b934325239f557e70b9aa7e4c6dd97 /scripts
parent0082dad9b0c87fcb01d7ca72c16eb6a1d7e131db (diff)
downloaddwb-83da4f3b781fd56d0c88db99c8cc64c86ba6309f.zip
Implementing tabs.iterate
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/dwb.js2
-rw-r--r--scripts/lib/signals.js6
-rw-r--r--scripts/lib/util.js1
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",