summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2014-02-27 15:29:38 +0100
committerportix <portix@gmx.net>2014-02-27 15:29:38 +0100
commit833f2570645e8e3e5cb6942ac6f3df39d21e4567 (patch)
treeaca0590ad9299edfdd5c2d7e66b03d68c7d148f8
parent385de856463036652a4642798b8ca4d7a5fb40be (diff)
downloaddwb-833f2570645e8e3e5cb6942ac6f3df39d21e4567.zip
Use tabs.forEach in Signal.connectWebView instead of old api
-rw-r--r--scripts/lib/signals.js.in9
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/lib/signals.js.in b/scripts/lib/signals.js.in
index a47ea017..d032ad3a 100644
--- a/scripts/lib/signals.js.in
+++ b/scripts/lib/signals.js.in
@@ -408,12 +408,9 @@
value : function(name, callback)
{
var wv;
- for (var i=0; i<tabs.length; i++)
- {
- wv = tabs.nth(i);
- if (wv)
- wv.connect(name, function() { callback.apply(wv, arguments); });
- }
+ tabs.forEach(function(w) {
+ w.connect(name, function() { callback.apply(w, arguments); });
+ });
Signal.connect("createTab", function(wv) {
wv.connect(name, function() { callback.apply(wv, arguments);});
});