summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <none@none>2013-03-20 21:28:32 +0100
committerportix <none@none>2013-03-20 21:28:32 +0100
commitf82b28e7abb519f08647cc4343796604eb989bd5 (patch)
treef99ab3e82c06faa2228bed0fafb813bdcf5f7748
parent57b2e516856b2208c492a890fda1d1421c1c9a24 (diff)
downloaddwb-f82b28e7abb519f08647cc4343796604eb989bd5.zip
Updatig unique_tabs to use signal.toggle
-rw-r--r--extensions/unique_tabs12
1 files changed, 3 insertions, 9 deletions
diff --git a/extensions/unique_tabs b/extensions/unique_tabs
index 535e72f0..600f57c1 100644
--- a/extensions/unique_tabs
+++ b/extensions/unique_tabs
@@ -75,16 +75,10 @@ var onNavigation = function(wv, frame, request)
};
var toggleAutoFocus = function()
{
- if (signal.isConnected())
- {
- signal.disconnect();
- io.notify("unique_tabs: autofocus disabled");
- }
- else
- {
- signal.connect();
+ if (signal.toggle())
io.notify("unique_tabs: autofocus enabled");
- }
+ else
+ io.notify("unique_tabs: autofocus disabled");
};
var uniqueTabs = {