FIX: Use the container to register Discourse's custom location handler

This commit is contained in:
Robin Ward
2014-04-15 11:45:45 -04:00
parent 2f9bb6b88f
commit fc65bc28be
3 changed files with 7 additions and 3 deletions
@@ -255,8 +255,6 @@ Ember.DiscourseLocation = Ember.Object.extend({
});
Ember.Location.registerImplementation('discourse_location', Ember.DiscourseLocation);
/**
Since we're using pushState/replaceState let's add extra hooks to cloakedView to
eject itself when the popState occurs. This results in better back button