summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2014-03-20 10:27:52 +0100
committerportix <portix@gmx.net>2014-03-20 10:27:52 +0100
commitd66d1377929cd220e958017d6cf0e4d3d66c1b74 (patch)
treee6b89443c499c945d60198e411a600ba7189d4e5
parent9ff5bd812b85ce1c1d2ffd79ff694445cf552f03 (diff)
downloaddwb-d66d1377929cd220e958017d6cf0e4d3d66c1b74.zip
Updating asynchronous initialization of extension sample
-rw-r--r--examples/extensions/sample6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/extensions/sample b/examples/extensions/sample
index 1056ab1b..6294ce42 100644
--- a/examples/extensions/sample
+++ b/examples/extensions/sample
@@ -97,8 +97,10 @@ var myExtension = {
system.spawn("some command", {
onFinished : function(result) {
if (result.status == 0) {
- bind(config.myShortcut, myAction);
- Signal.connect("onNavigation", mySignalCallback);
+ script.own(
+ bind(config.myShortcut, myAction),
+ Signal.connect("onNavigation", mySignalCallback),
+ );
deferred.resolve(true);
}