{"action":"created","issue":{"url":"https://api.github.com/repos/mmikowski/jquery.event.ue/issues/8","labels_url":"https://api.github.com/repos/mmikowski/jquery.event.ue/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/mmikowski/jquery.event.ue/issues/8/comments","events_url":"https://api.github.com/repos/mmikowski/jquery.event.ue/issues/8/events","html_url":"https://github.com/mmikowski/jquery.event.ue/issues/8","id":67686866,"number":8,"title":"failing in iOS simulator","user":{"login":"suzerain","id":406997,"avatar_url":"https://avatars.githubusercontent.com/u/406997?v=3","gravatar_id":"","url":"https://api.github.com/users/suzerain","html_url":"https://github.com/suzerain","followers_url":"https://api.github.com/users/suzerain/followers","following_url":"https://api.github.com/users/suzerain/following{/other_user}","gists_url":"https://api.github.com/users/suzerain/gists{/gist_id}","starred_url":"https://api.github.com/users/suzerain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suzerain/subscriptions","organizations_url":"https://api.github.com/users/suzerain/orgs","repos_url":"https://api.github.com/users/suzerain/repos","events_url":"https://api.github.com/users/suzerain/events{/privacy}","received_events_url":"https://api.github.com/users/suzerain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-10T21:26:05Z","updated_at":"2015-04-10T22:55:41Z","closed_at":null,"body":"Was using this on an app, but the library is returning this error when in the iOS simulator (iOS 8.1): \"TypeError: undefined is not an object (evaluating 'o_event.changedTouches')\". The error is on Line 656, after a reference to \"event.originalEvent\" (this property obviously doesn't exist).\r\n\r\nI'd help fix this but not sure yet what that code is trying to do."},"comment":{"url":"https://api.github.com/repos/mmikowski/jquery.event.ue/issues/comments/91711942","html_url":"https://github.com/mmikowski/jquery.event.ue/issues/8#issuecomment-91711942","issue_url":"https://api.github.com/repos/mmikowski/jquery.event.ue/issues/8","id":91711942,"user":{"login":"mmikowski","id":351917,"avatar_url":"https://avatars.githubusercontent.com/u/351917?v=3","gravatar_id":"","url":"https://api.github.com/users/mmikowski","html_url":"https://github.com/mmikowski","followers_url":"https://api.github.com/users/mmikowski/followers","following_url":"https://api.github.com/users/mmikowski/following{/other_user}","gists_url":"https://api.github.com/users/mmikowski/gists{/gist_id}","starred_url":"https://api.github.com/users/mmikowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmikowski/subscriptions","organizations_url":"https://api.github.com/users/mmikowski/orgs","repos_url":"https://api.github.com/users/mmikowski/repos","events_url":"https://api.github.com/users/mmikowski/events{/privacy}","received_events_url":"https://api.github.com/users/mmikowski/received_events","type":"User","site_admin":false},"created_at":"2015-04-10T22:55:41Z","updated_at":"2015-04-10T22:55:41Z","body":"Original event apparently is not defined in the iOS8.1 simulator.  Since I don't own a Mac, I can't run this to check.  However, the fix to avoid a fatal exception is easy:\r\n\r\nFirst, 'a_touches' should be renamed to 'touch_list'.  Next, we should check if\r\n the original event is undefined; if so, set the touch list to an empty array.  If it is defined, set the touch list equal to the changedTouches property, or to an empty array if that is not defined.\r\n\r\nAfter the rename, this should be all that is needed at line 656:\r\n\r\n    touch_list = o_event ? o_event.changedTouches || [] : []\r\n\r\nI will roll this into an upcoming release.  But the fix above should solve your problem."}}