{"action":"opened","issue":{"url":"https://api.github.com/repos/abpetkov/switchery/issues/119","repository_url":"https://api.github.com/repos/abpetkov/switchery","labels_url":"https://api.github.com/repos/abpetkov/switchery/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/abpetkov/switchery/issues/119/comments","events_url":"https://api.github.com/repos/abpetkov/switchery/issues/119/events","html_url":"https://github.com/abpetkov/switchery/issues/119","id":197345632,"number":119,"title":"Can not modify Switch State using jQuery event","user":{"login":"uttamnestcode","id":18526663,"avatar_url":"https://avatars.githubusercontent.com/u/18526663?v=3","gravatar_id":"","url":"https://api.github.com/users/uttamnestcode","html_url":"https://github.com/uttamnestcode","followers_url":"https://api.github.com/users/uttamnestcode/followers","following_url":"https://api.github.com/users/uttamnestcode/following{/other_user}","gists_url":"https://api.github.com/users/uttamnestcode/gists{/gist_id}","starred_url":"https://api.github.com/users/uttamnestcode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uttamnestcode/subscriptions","organizations_url":"https://api.github.com/users/uttamnestcode/orgs","repos_url":"https://api.github.com/users/uttamnestcode/repos","events_url":"https://api.github.com/users/uttamnestcode/events{/privacy}","received_events_url":"https://api.github.com/users/uttamnestcode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-23T10:27:07Z","updated_at":"2016-12-23T10:27:07Z","closed_at":null,"body":"i am trying to trigger Switch mode to off using jQuery but i am unable to find actual way to do so.\r\nThis is my initialise method:\r\n\r\n```\r\nvar defaults = {\r\n    color: \"#052e65\"\r\n};\r\n$('.init_switchery').each(function() {\r\n    var $this = $(this),\r\n        $options = $.extend({}, defaults, $this.data());\r\n    new Switchery(this, $options);\r\n});\r\n```\r\n\r\nI am trying to trigger Switch off using Click event on self. \r\n\r\n```\r\n$('.init_switchery').on('click', function() {\r\n    // Here i can see my switch is on after i click on it\r\n    setTimeout(function() {\r\n        // i want to trigger switch off after 5 seconds of clicking on it \r\n    }, 5000);\r\n});\r\n```"}}
{"actor":{"display_login":"uttamnestcode"}}