diff options
author | portix <portix@gmx.net> | 2014-03-20 10:25:27 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2014-03-20 10:25:27 +0100 |
commit | 9ff5bd812b85ce1c1d2ffd79ff694445cf552f03 (patch) | |
tree | 0f63a7cb4c2b6c4c9dc4c3c649aeb7b74d96ee5b | |
parent | 75dce06be15a2d75cdafe59ea67ef498d6255081 (diff) | |
download | dwb-9ff5bd812b85ce1c1d2ffd79ff694445cf552f03.zip |
Updating sample extension
-rw-r--r-- | examples/extensions/sample | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/extensions/sample b/examples/extensions/sample index ba264607..1056ab1b 100644 --- a/examples/extensions/sample +++ b/examples/extensions/sample @@ -77,8 +77,10 @@ var myExtension = { this.exports.config = config; - bind(config.myShortcut, myAction); - Signal.connect("onNavigation", mySignalCallback); + script.own( + bind(config.myShortcut, myAction), + Signal.connect("onNavigation", mySignalCallback) + ); return true; @@ -113,8 +115,7 @@ var myExtension = { // defined if some commands were bound in init or some signals were // connected. Must return true if deinitialization was successful. end : function() { - unbind(myAction); - Signal.disconnect(mySignalCallback); + script.removeHandles(); return true; } }; |