$(document).on ‘click’, ‘a:not()’, (evt) ->
href = prop: $(this).prop('href') attr: $(this).attr('href') root = location.protocol + '//' + location.host + Backbone.history.options.root if href.prop and href.prop.slice(0, root.length) == root evt.preventDefault() Backbone.app.navigate href.attr