-
-
Save mr47/102acec1c5044e859a0c to your computer and use it in GitHub Desktop.
backbone router detect full page loading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this.listenToOnce(Backbone.history, 'route', function() { | |
| this.listenTo(Backbone.history, 'route', function() { | |
| // stuff that needs to happen on all routes apart from the inital page load one | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment