{"action":"opened","issue":{"url":"https://api.github.com/repos/t4t5/sweetalert/issues/632","repository_url":"https://api.github.com/repos/t4t5/sweetalert","labels_url":"https://api.github.com/repos/t4t5/sweetalert/issues/632/labels{/name}","comments_url":"https://api.github.com/repos/t4t5/sweetalert/issues/632/comments","events_url":"https://api.github.com/repos/t4t5/sweetalert/issues/632/events","html_url":"https://github.com/t4t5/sweetalert/issues/632","id":190364563,"number":632,"title":"Why cancel callback don't work when using a bind(this)?","user":{"login":"lucasumberto","id":7528675,"avatar_url":"https://avatars.githubusercontent.com/u/7528675?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasumberto","html_url":"https://github.com/lucasumberto","followers_url":"https://api.github.com/users/lucasumberto/followers","following_url":"https://api.github.com/users/lucasumberto/following{/other_user}","gists_url":"https://api.github.com/users/lucasumberto/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasumberto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasumberto/subscriptions","organizations_url":"https://api.github.com/users/lucasumberto/orgs","repos_url":"https://api.github.com/users/lucasumberto/repos","events_url":"https://api.github.com/users/lucasumberto/events{/privacy}","received_events_url":"https://api.github.com/users/lucasumberto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-18T16:40:53Z","updated_at":"2016-11-18T16:40:53Z","closed_at":null,"body":"I need to use scope variables to stop the loading effect in my view. But swall does'ent exec the callback function when it has .bind(this) on it... why?\r\n\r\nswal({\r\n  title: \"Are you sure?\",\r\n  text: \"You will not be able to recover this imaginary file!\",\r\n  type: \"warning\",\r\n  showCancelButton: true,\r\n  confirmButtonColor: \"#DD6B55\",\r\n  confirmButtonText: \"Yes, delete it!\",\r\n  cancelButtonText: \"No, cancel plx!\",\r\n  closeOnConfirm: false,\r\n  closeOnCancel: false\r\n},\r\nfunction(isConfirm){\r\n  if (isConfirm) {\r\n    successFunction.bind(this); // it works\r\n  } else {\r\n    myfunction.bind(this); // it is ignored\r\n  }\r\n});"}}
{"actor":{"display_login":"lucasumberto"}}