Use transitionToRoute instead of transitionTo in controllers

This commit is contained in:
Piotr Sarnacki 2016-01-13 12:00:35 +01:00
parent fb1b820837
commit 34ca0cc386

View File

@ -201,7 +201,7 @@ var Controller = Ember.Controller.extend({
Ember.run.cancel(this.searchLater);
}
this.searchLater = Ember.run.later(this, (function() {
this.transitionTo('main.search', phrase.replace(/\//g, '%2F'));
this.transitionToRoute('main.search', phrase.replace(/\//g, '%2F'));
}), 500);
},