diff options
author | portix <portix@gmx.net> | 2014-02-27 15:29:38 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2014-02-27 15:29:38 +0100 |
commit | 833f2570645e8e3e5cb6942ac6f3df39d21e4567 (patch) | |
tree | aca0590ad9299edfdd5c2d7e66b03d68c7d148f8 | |
parent | 385de856463036652a4642798b8ca4d7a5fb40be (diff) | |
download | dwb-833f2570645e8e3e5cb6942ac6f3df39d21e4567.zip |
Use tabs.forEach in Signal.connectWebView instead of old api
-rw-r--r-- | scripts/lib/signals.js.in | 9 |
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);}); }); |