{"action":"created","issue":{"url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/186","repository_url":"https://api.github.com/repos/SpookyJS/SpookyJS","labels_url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/186/comments","events_url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/186/events","html_url":"https://github.com/SpookyJS/SpookyJS/issues/186","id":139995627,"number":186,"title":"returning from spooky ","user":{"login":"MVMS1994","id":6565702,"avatar_url":"https://avatars.githubusercontent.com/u/6565702?v=3","gravatar_id":"","url":"https://api.github.com/users/MVMS1994","html_url":"https://github.com/MVMS1994","followers_url":"https://api.github.com/users/MVMS1994/followers","following_url":"https://api.github.com/users/MVMS1994/following{/other_user}","gists_url":"https://api.github.com/users/MVMS1994/gists{/gist_id}","starred_url":"https://api.github.com/users/MVMS1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MVMS1994/subscriptions","organizations_url":"https://api.github.com/users/MVMS1994/orgs","repos_url":"https://api.github.com/users/MVMS1994/repos","events_url":"https://api.github.com/users/MVMS1994/events{/privacy}","received_events_url":"https://api.github.com/users/MVMS1994/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-10T20:08:50Z","updated_at":"2016-03-16T09:23:03Z","closed_at":"2016-03-16T09:23:03Z","body":"How to retrieve the control from spooky? I tried exit() and destroy(). But the url gets changed to blank whereas the control is still inside spooky. For eg:\r\n\r\nfun1 = deaync(function() {\r\nconsole.log(\"in part1\")\r\nvar url = \"https://www.google.com\";\r\nspooky.start(url);\r\nspooky.then(function () {\r\n}\r\nspooky.run();\r\nspooky.on('run.complete' , function(){\r\nthis.exit();\r\nspooky.destroy();\r\n});\r\n\r\nconsole.log(\"before spooky\");\r\nfun1();\r\nconsole.log(\"after spooky\")\r\n\r\nIn this example \"after spooky doest get printed since the control is still in spooky"},"comment":{"url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/comments/197224631","html_url":"https://github.com/SpookyJS/SpookyJS/issues/186#issuecomment-197224631","issue_url":"https://api.github.com/repos/SpookyJS/SpookyJS/issues/186","id":197224631,"user":{"login":"solick","id":6951841,"avatar_url":"https://avatars.githubusercontent.com/u/6951841?v=3","gravatar_id":"","url":"https://api.github.com/users/solick","html_url":"https://github.com/solick","followers_url":"https://api.github.com/users/solick/followers","following_url":"https://api.github.com/users/solick/following{/other_user}","gists_url":"https://api.github.com/users/solick/gists{/gist_id}","starred_url":"https://api.github.com/users/solick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solick/subscriptions","organizations_url":"https://api.github.com/users/solick/orgs","repos_url":"https://api.github.com/users/solick/repos","events_url":"https://api.github.com/users/solick/events{/privacy}","received_events_url":"https://api.github.com/users/solick/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T09:23:03Z","updated_at":"2016-03-16T09:23:03Z","body":"Checking a value for a change is no bug in spookyjs but basic knowledge of javascript. Please consult some books or intruductions to javaascript / nodejs."}}