{"action":"opened","issue":{"url":"https://api.github.com/repos/pattern-lab/patternlab-php/issues/294","labels_url":"https://api.github.com/repos/pattern-lab/patternlab-php/issues/294/labels{/name}","comments_url":"https://api.github.com/repos/pattern-lab/patternlab-php/issues/294/comments","events_url":"https://api.github.com/repos/pattern-lab/patternlab-php/issues/294/events","html_url":"https://github.com/pattern-lab/patternlab-php/issues/294","id":76638828,"number":294,"title":"Instructions to prevent Javascript firing twice","user":{"login":"Machinas","id":3283703,"avatar_url":"https://avatars.githubusercontent.com/u/3283703?v=3","gravatar_id":"","url":"https://api.github.com/users/Machinas","html_url":"https://github.com/Machinas","followers_url":"https://api.github.com/users/Machinas/followers","following_url":"https://api.github.com/users/Machinas/following{/other_user}","gists_url":"https://api.github.com/users/Machinas/gists{/gist_id}","starred_url":"https://api.github.com/users/Machinas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Machinas/subscriptions","organizations_url":"https://api.github.com/users/Machinas/orgs","repos_url":"https://api.github.com/users/Machinas/repos","events_url":"https://api.github.com/users/Machinas/events{/privacy}","received_events_url":"https://api.github.com/users/Machinas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-15T07:55:13Z","updated_at":"2015-05-15T07:55:13Z","closed_at":null,"body":"when adding javascript code within a mustache file it fires events twice, I know this has been discussed here https://github.com/pattern-lab/patternlab-php/issues/87 but no specific instructions are given? Could someone please give detailed instructions, on how to fix this?\r\n\r\n $(document).on('click ', '.prev', function(e){\r\n                  e.preventDefault();   \r\n                  var slider = $('.main-slider .cycle-slideshow');    \r\n                  slider.cycle('prev');\r\n                  $('.main-slider .tabs').addClass(\"finished\");                 \r\n                  $('.main-slider .cycle-slideshow .progress-wrapper').hide();\r\n                  \r\n            });\r\n\r\nThanks."}}