Files
framework/ember/forum/app/mixins/pushes-history.js

21 lines
444 B
JavaScript

import Ember from 'ember';
export default Ember.Mixin.create({
pushHistory: function() {
Ember.run.next(this, function() {
this.controllerFor('application').pushHistory(this.get('historyKey'), this.get('url'));
});
},
setupController: function(controller, model) {
this._super(controller, model);
this.pushHistory();
},
actions: {
queryParamsDidChange: function() {
this.pushHistory();
}
}
})