{"action":"closed","issue":{"url":"https://api.github.com/repos/MoOx/pjax/issues/51","labels_url":"https://api.github.com/repos/MoOx/pjax/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/MoOx/pjax/issues/51/comments","events_url":"https://api.github.com/repos/MoOx/pjax/issues/51/events","html_url":"https://github.com/MoOx/pjax/issues/51","id":124878747,"number":51,"title":"onSwitch is undefined - \"this\" is \"window\", not \"pjax\"","user":{"login":"darylteo","id":1226920,"avatar_url":"https://avatars.githubusercontent.com/u/1226920?v=3","gravatar_id":"","url":"https://api.github.com/users/darylteo","html_url":"https://github.com/darylteo","followers_url":"https://api.github.com/users/darylteo/followers","following_url":"https://api.github.com/users/darylteo/following{/other_user}","gists_url":"https://api.github.com/users/darylteo/gists{/gist_id}","starred_url":"https://api.github.com/users/darylteo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darylteo/subscriptions","organizations_url":"https://api.github.com/users/darylteo/orgs","repos_url":"https://api.github.com/users/darylteo/repos","events_url":"https://api.github.com/users/darylteo/events{/privacy}","received_events_url":"https://api.github.com/users/darylteo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-05T01:55:39Z","updated_at":"2016-01-05T06:16:36Z","closed_at":"2016-01-05T06:16:36Z","body":"```\r\nPjax switch fail:  \r\nTypeError: this.onSwitch is not a function(…)(anonymous function) @ vendor.bundle.js:277 \r\n````\r\n\r\nStack Trace \r\n````\r\nmodule.exports.outerHTML (vendor.bundle.j…v=20160105:740)\r\n(anonymous function) (vendor.bundle.j…v=20160105:722)\r\nmodule.exports (vendor.bundle.j…v=20160105:390)\r\n(anonymous function) (vendor.bundle.j…v=20160105:713)\r\nmodule.exports (vendor.bundle.j…v=20160105:697)\r\nPjax.switchSelectors (vendor.bundle.j…v=20160105:174)\r\nPjax.loadContent (vendor.bundle.j…v=20160105:225)\r\n(anonymous function) (vendor.bundle.j…v=20160105:272)\r\nrequest.onreadystatechange (vendor.bundle.j…v=20160105:860)\r\n````\r\n\r\nHappens in switches.js outerHTML and innerHTML"}}