Skip to content

Instantly share code, notes, and snippets.

@timini
Forked from knownasilya/router.js
Last active August 29, 2015 14:24
Show Gist options
  • Save timini/cb72758cbf08a4bacaf7 to your computer and use it in GitHub Desktop.
Save timini/cb72758cbf08a4bacaf7 to your computer and use it in GitHub Desktop.
var Router = Ember.Router.extend({
location: config.locationType,
init: function () {
this._super.apply(this, arguments);
// Listen for the first transition, and trigger the `setupMapOnFirstLoad` action when it's complete.
this.one('willTransition', function (transition) {
transition.then(function () {
// do something..
});
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment