{"action":"created","issue":{"url":"https://api.github.com/repos/t4t5/sweetalert/issues/175","labels_url":"https://api.github.com/repos/t4t5/sweetalert/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/t4t5/sweetalert/issues/175/comments","events_url":"https://api.github.com/repos/t4t5/sweetalert/issues/175/events","html_url":"https://github.com/t4t5/sweetalert/issues/175","id":47195118,"number":175,"title":"isConfirm in function is undefined","user":{"login":"KnowMoreIT","id":5861587,"avatar_url":"https://avatars.githubusercontent.com/u/5861587?v=3","gravatar_id":"","url":"https://api.github.com/users/KnowMoreIT","html_url":"https://github.com/KnowMoreIT","followers_url":"https://api.github.com/users/KnowMoreIT/followers","following_url":"https://api.github.com/users/KnowMoreIT/following{/other_user}","gists_url":"https://api.github.com/users/KnowMoreIT/gists{/gist_id}","starred_url":"https://api.github.com/users/KnowMoreIT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KnowMoreIT/subscriptions","organizations_url":"https://api.github.com/users/KnowMoreIT/orgs","repos_url":"https://api.github.com/users/KnowMoreIT/repos","events_url":"https://api.github.com/users/KnowMoreIT/events{/privacy}","received_events_url":"https://api.github.com/users/KnowMoreIT/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-10-29T19:50:34Z","updated_at":"2015-01-19T16:09:52Z","closed_at":"2015-01-19T16:09:52Z","body":"I am able to get the function to work but it seems \"isConfirm\" is undefined:\r\n\r\n```C#\r\nfunction DeleteReseller(companyCode) {\r\n            swal({\r\n                title: \"Are you sure?\",\r\n                text: \"This action is not reversable\",\r\n                type: \"warning\",\r\n                showCancelButton: true,\r\n                confirmButtonColor: \"#DD6B55\",\r\n                confirmButtonText: \"Yes\",\r\n                cancelButtonText: \"No\",\r\n                closeOnConfirm: true,\r\n                closeOnCancel: true\r\n            },\r\n            function (isConfirm){\r\n                alert(isConfirm);\r\n                if (isConfirm) {\r\n                    $.ajax({\r\n                        type: \"DELETE\",\r\n                        data: {}\r\n                    }).done(function () {\r\n                        ReloadResellers();\r\n                        swal(\"Deleted!\", \"Reseller was successfully deleted\", \"success\");\r\n                    }).fail(function (returnData) {\r\n                        ShowAlert(\"error\", returnData.responseJSON.error);\r\n                    }).always(function () {\r\n                        $.unblockUI();\r\n                    });\r\n                }\r\n            });\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/t4t5/sweetalert/issues/comments/70518332","html_url":"https://github.com/t4t5/sweetalert/issues/175#issuecomment-70518332","issue_url":"https://api.github.com/repos/t4t5/sweetalert/issues/175","id":70518332,"user":{"login":"t4t5","id":2598660,"avatar_url":"https://avatars.githubusercontent.com/u/2598660?v=3","gravatar_id":"","url":"https://api.github.com/users/t4t5","html_url":"https://github.com/t4t5","followers_url":"https://api.github.com/users/t4t5/followers","following_url":"https://api.github.com/users/t4t5/following{/other_user}","gists_url":"https://api.github.com/users/t4t5/gists{/gist_id}","starred_url":"https://api.github.com/users/t4t5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t4t5/subscriptions","organizations_url":"https://api.github.com/users/t4t5/orgs","repos_url":"https://api.github.com/users/t4t5/repos","events_url":"https://api.github.com/users/t4t5/events{/privacy}","received_events_url":"https://api.github.com/users/t4t5/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T16:09:52Z","updated_at":"2015-01-19T16:09:52Z","body":"This is fixed so I'm closing. :)"}}