{"action":"created","issue":{"url":"https://api.github.com/repos/t4t5/sweetalert/issues/490","labels_url":"https://api.github.com/repos/t4t5/sweetalert/issues/490/labels{/name}","comments_url":"https://api.github.com/repos/t4t5/sweetalert/issues/490/comments","events_url":"https://api.github.com/repos/t4t5/sweetalert/issues/490/events","html_url":"https://github.com/t4t5/sweetalert/issues/490","id":121532708,"number":490,"title":"Uncaught Syntax Error: Unexpected Token (","user":{"login":"deronsizemore","id":68437,"avatar_url":"https://avatars.githubusercontent.com/u/68437?v=3","gravatar_id":"","url":"https://api.github.com/users/deronsizemore","html_url":"https://github.com/deronsizemore","followers_url":"https://api.github.com/users/deronsizemore/followers","following_url":"https://api.github.com/users/deronsizemore/following{/other_user}","gists_url":"https://api.github.com/users/deronsizemore/gists{/gist_id}","starred_url":"https://api.github.com/users/deronsizemore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deronsizemore/subscriptions","organizations_url":"https://api.github.com/users/deronsizemore/orgs","repos_url":"https://api.github.com/users/deronsizemore/repos","events_url":"https://api.github.com/users/deronsizemore/events{/privacy}","received_events_url":"https://api.github.com/users/deronsizemore/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-10T17:02:10Z","updated_at":"2015-12-10T20:30:41Z","closed_at":"2015-12-10T20:30:41Z","body":"    $('.delete').click(function() {\r\n\t    sweetAlert({\r\n\t\t    html: true,\r\n\t\t    allowOutsideClick: true,\r\n\t\t    confirmButtonColor: \"#53b5e6\",\r\n\t\t    title: \"You sure?\",\r\n\t\t    text: \"You're about to delete everything. Are you sure?\",\r\n\t\t    type: \"warning\", confirmButtonText: \"Do it!\"\r\n\t    });\r\n\r\n\t    function(isConfirm) {\r\n            /* ajax stuff to delete a thing */\r\n\t    });\r\n    });\r\n\r\nAny idea what I'm doing wrong here? I keep getting the unexpected token ( on this line:\r\n\r\n`function(isConfirm) {`"},"comment":{"url":"https://api.github.com/repos/t4t5/sweetalert/issues/comments/163741056","html_url":"https://github.com/t4t5/sweetalert/issues/490#issuecomment-163741056","issue_url":"https://api.github.com/repos/t4t5/sweetalert/issues/490","id":163741056,"user":{"login":"deronsizemore","id":68437,"avatar_url":"https://avatars.githubusercontent.com/u/68437?v=3","gravatar_id":"","url":"https://api.github.com/users/deronsizemore","html_url":"https://github.com/deronsizemore","followers_url":"https://api.github.com/users/deronsizemore/followers","following_url":"https://api.github.com/users/deronsizemore/following{/other_user}","gists_url":"https://api.github.com/users/deronsizemore/gists{/gist_id}","starred_url":"https://api.github.com/users/deronsizemore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deronsizemore/subscriptions","organizations_url":"https://api.github.com/users/deronsizemore/orgs","repos_url":"https://api.github.com/users/deronsizemore/repos","events_url":"https://api.github.com/users/deronsizemore/events{/privacy}","received_events_url":"https://api.github.com/users/deronsizemore/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T20:30:41Z","updated_at":"2015-12-10T20:30:41Z","body":"Well... that's embarrassing. I see it now in the example but not sure how I glossed over that earlier. I must have looked at it for an hour comparing to what I had. Thanks."}}