{"action":"created","issue":{"url":"https://api.github.com/repos/mgonto/angular-wizard/issues/145","labels_url":"https://api.github.com/repos/mgonto/angular-wizard/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/mgonto/angular-wizard/issues/145/comments","events_url":"https://api.github.com/repos/mgonto/angular-wizard/issues/145/events","html_url":"https://github.com/mgonto/angular-wizard/issues/145","id":118406185,"number":145,"title":"canexit called twice when returning boolean","user":{"login":"vketsenko","id":6387340,"avatar_url":"https://avatars.githubusercontent.com/u/6387340?v=3","gravatar_id":"","url":"https://api.github.com/users/vketsenko","html_url":"https://github.com/vketsenko","followers_url":"https://api.github.com/users/vketsenko/followers","following_url":"https://api.github.com/users/vketsenko/following{/other_user}","gists_url":"https://api.github.com/users/vketsenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vketsenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vketsenko/subscriptions","organizations_url":"https://api.github.com/users/vketsenko/orgs","repos_url":"https://api.github.com/users/vketsenko/repos","events_url":"https://api.github.com/users/vketsenko/events{/privacy}","received_events_url":"https://api.github.com/users/vketsenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-23T15:33:27Z","updated_at":"2015-12-09T15:47:21Z","closed_at":null,"body":"If canexit function returns true\\false, it is always called twice.\r\nReason: bug in wizard.js, line 168\r\n`return step.canexit($scope.context) === true;`\r\nshould be replaced with\r\n`return canExit  === true;`\r\nbecause step.canexit has already been called on line 160\r\n"},"comment":{"url":"https://api.github.com/repos/mgonto/angular-wizard/issues/comments/163298539","html_url":"https://github.com/mgonto/angular-wizard/issues/145#issuecomment-163298539","issue_url":"https://api.github.com/repos/mgonto/angular-wizard/issues/145","id":163298539,"user":{"login":"vketsenko","id":6387340,"avatar_url":"https://avatars.githubusercontent.com/u/6387340?v=3","gravatar_id":"","url":"https://api.github.com/users/vketsenko","html_url":"https://github.com/vketsenko","followers_url":"https://api.github.com/users/vketsenko/followers","following_url":"https://api.github.com/users/vketsenko/following{/other_user}","gists_url":"https://api.github.com/users/vketsenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vketsenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vketsenko/subscriptions","organizations_url":"https://api.github.com/users/vketsenko/orgs","repos_url":"https://api.github.com/users/vketsenko/repos","events_url":"https://api.github.com/users/vketsenko/events{/privacy}","received_events_url":"https://api.github.com/users/vketsenko/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T15:47:21Z","updated_at":"2015-12-09T15:47:21Z","body":"bradleybossard, as temporar solution you may return promise instead of boolean. It works correctly with promises.\r\n`return $q.when([]);`"}}