{"issue":{"created_at":"2011-12-12T14:11:47Z","state":"closed","updated_at":"2011-12-13T05:03:02Z","user":{"gravatar_id":"738b743e157c87a613f6749982cbe7f4","id":147175,"url":"https://api.github.com/users/zealot128","login":"zealot128","avatar_url":"https://secure.gravatar.com/avatar/738b743e157c87a613f6749982cbe7f4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":1,"body":"Hello, I used your changes to make the pjax work with forms.\r\n\r\nUnfortunatly, the pjax never triggered for me, because it was leaving the function at the PJAX-link scheme match part.\r\n\r\nThis was because indexOf returned a -1, which seems to be \"true\" in javascript. So, the pjax was always terminated at this point.","assignee":null,"id":2523340,"number":1,"labels":[],"pull_request":{"patch_url":"https://github.com/johnbillion/jquery-pjax/pull/1.patch","html_url":"https://github.com/johnbillion/jquery-pjax/pull/1","diff_url":"https://github.com/johnbillion/jquery-pjax/pull/1.diff"},"title":"Bug with indexOf in URL-Scheme","closed_at":"2011-12-13T04:59:42Z","html_url":"https://github.com/johnbillion/jquery-pjax/issues/1","url":"https://api.github.com/repos/johnbillion/jquery-pjax/issues/1","milestone":null},"action":"created","comment":{"created_at":"2011-12-13T05:03:02Z","updated_at":"2011-12-13T05:03:02Z","user":{"gravatar_id":"23e12888dcd87d07434b7621bc164958","id":208434,"url":"https://api.github.com/users/johnbillion","login":"johnbillion","avatar_url":"https://secure.gravatar.com/avatar/23e12888dcd87d07434b7621bc164958?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Thanks zealot128, it must have slipped my mind that JavaScript returns -1 for no matches instead of boolean false.","id":3118936,"url":"https://api.github.com/repos/johnbillion/jquery-pjax/issues/comments/3118936"}}