{"action":"created","issue":{"url":"https://api.github.com/repos/featurist/plastiq/issues/15","labels_url":"https://api.github.com/repos/featurist/plastiq/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/featurist/plastiq/issues/15/comments","events_url":"https://api.github.com/repos/featurist/plastiq/issues/15/events","html_url":"https://github.com/featurist/plastiq/pull/15","id":54508215,"number":15,"title":"Routing","user":{"login":"refractalize","id":123917,"avatar_url":"https://avatars.githubusercontent.com/u/123917?v=3","gravatar_id":"","url":"https://api.github.com/users/refractalize","html_url":"https://github.com/refractalize","followers_url":"https://api.github.com/users/refractalize/followers","following_url":"https://api.github.com/users/refractalize/following{/other_user}","gists_url":"https://api.github.com/users/refractalize/gists{/gist_id}","starred_url":"https://api.github.com/users/refractalize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refractalize/subscriptions","organizations_url":"https://api.github.com/users/refractalize/orgs","repos_url":"https://api.github.com/users/refractalize/repos","events_url":"https://api.github.com/users/refractalize/events{/privacy}","received_events_url":"https://api.github.com/users/refractalize/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-15T21:41:44Z","updated_at":"2015-01-18T07:09:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/featurist/plastiq/pulls/15","html_url":"https://github.com/featurist/plastiq/pull/15","diff_url":"https://github.com/featurist/plastiq/pull/15.diff","patch_url":"https://github.com/featurist/plastiq/pull/15.patch"},"body":"Run the [example](https://github.com/featurist/plastiq/blob/routes/examples/routing.js):\r\n\r\n    watchify examples/routing.js -v -o examples/public/app.js\r\n    node examples/server.js\r\n\r\nThen hit [http://localhost:4000/](http://localhost:4000/)\r\n\r\nYou'll notice that there is a 300ms delay when loading the `/objects` and `/objects/:id` pages. This is to simulate an AJAX load time. However, when navigating forward and back we use `history.state` so there is no delay. When we refresh the page (F5, ⌘-R), we fetch new state instead of using `history.state`."},"comment":{"url":"https://api.github.com/repos/featurist/plastiq/issues/comments/70398867","html_url":"https://github.com/featurist/plastiq/pull/15#issuecomment-70398867","issue_url":"https://api.github.com/repos/featurist/plastiq/issues/15","id":70398867,"user":{"login":"refractalize","id":123917,"avatar_url":"https://avatars.githubusercontent.com/u/123917?v=3","gravatar_id":"","url":"https://api.github.com/users/refractalize","html_url":"https://github.com/refractalize","followers_url":"https://api.github.com/users/refractalize/followers","following_url":"https://api.github.com/users/refractalize/following{/other_user}","gists_url":"https://api.github.com/users/refractalize/gists{/gist_id}","starred_url":"https://api.github.com/users/refractalize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/refractalize/subscriptions","organizations_url":"https://api.github.com/users/refractalize/orgs","repos_url":"https://api.github.com/users/refractalize/repos","events_url":"https://api.github.com/users/refractalize/events{/privacy}","received_events_url":"https://api.github.com/users/refractalize/received_events","type":"User","site_admin":false},"created_at":"2015-01-18T07:09:33Z","updated_at":"2015-01-18T07:09:33Z","body":"yeah, in the `binding` case, I execute the binding event handler before the user event handler, and return the result of the user handler. See https://github.com/featurist/plastiq/blob/master/rendering.js#L89-L103. Seems to work.\r\n\r\nIn the case of the onclick here, especially with anchors, is that we would have to `ev.preventDefault()`."}}