{"action":"created","issue":{"url":"https://api.github.com/repos/initialxy/cordova-plugin-themeablebrowser/issues/38","labels_url":"https://api.github.com/repos/initialxy/cordova-plugin-themeablebrowser/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/initialxy/cordova-plugin-themeablebrowser/issues/38/comments","events_url":"https://api.github.com/repos/initialxy/cordova-plugin-themeablebrowser/issues/38/events","html_url":"https://github.com/initialxy/cordova-plugin-themeablebrowser/issues/38","id":98415449,"number":38,"title":"Need Help with JavaScript Object","user":{"login":"akriger","id":12530743,"avatar_url":"https://avatars.githubusercontent.com/u/12530743?v=3","gravatar_id":"","url":"https://api.github.com/users/akriger","html_url":"https://github.com/akriger","followers_url":"https://api.github.com/users/akriger/followers","following_url":"https://api.github.com/users/akriger/following{/other_user}","gists_url":"https://api.github.com/users/akriger/gists{/gist_id}","starred_url":"https://api.github.com/users/akriger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akriger/subscriptions","organizations_url":"https://api.github.com/users/akriger/orgs","repos_url":"https://api.github.com/users/akriger/repos","events_url":"https://api.github.com/users/akriger/events{/privacy}","received_events_url":"https://api.github.com/users/akriger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/initialxy/cordova-plugin-themeablebrowser/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-31T15:40:38Z","updated_at":"2015-08-02T16:01:31Z","closed_at":null,"body":"I have added a custom button that, when clicked, closes the IAB and opens the barcode scanner which in return once something is scanned will open IAB again to what was scanned. The problem is after the first scan the button no longer works. The only way I found it to work  multiple times is it copy/paste the code over and over again into the .addEventListener. This is not ideally what I want. Is there anyway around the copy/past method?"},"comment":{"url":"https://api.github.com/repos/initialxy/cordova-plugin-themeablebrowser/issues/comments/127039717","html_url":"https://github.com/initialxy/cordova-plugin-themeablebrowser/issues/38#issuecomment-127039717","issue_url":"https://api.github.com/repos/initialxy/cordova-plugin-themeablebrowser/issues/38","id":127039717,"user":{"login":"akriger","id":12530743,"avatar_url":"https://avatars.githubusercontent.com/u/12530743?v=3","gravatar_id":"","url":"https://api.github.com/users/akriger","html_url":"https://github.com/akriger","followers_url":"https://api.github.com/users/akriger/followers","following_url":"https://api.github.com/users/akriger/following{/other_user}","gists_url":"https://api.github.com/users/akriger/gists{/gist_id}","starred_url":"https://api.github.com/users/akriger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akriger/subscriptions","organizations_url":"https://api.github.com/users/akriger/orgs","repos_url":"https://api.github.com/users/akriger/repos","events_url":"https://api.github.com/users/akriger/events{/privacy}","received_events_url":"https://api.github.com/users/akriger/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T16:01:31Z","updated_at":"2015-08-02T16:01:31Z","body":"When I first read put $scope.startScanner() I was like I already tried that. But now that I think about it i had just put \r\n\r\n...\r\n.addEventListener('barcodePressed', function(e) {\r\n    ref.close();\r\n    startScanner();\r\n});\r\n\r\nwithout the $scope in front. Dummy me. This is working just like I needed thank you so much. Love your plugin."}}