mirror of
https://github.com/flarum/framework.git
synced 2025-03-15 00:05:12 +08:00
Convert to int before checking start
This commit is contained in:
parent
f2ac56cb9c
commit
3fba2bd5d8
@ -40,9 +40,9 @@ export default Ember.Route.extend({
|
||||
// Thus, controller.loaded would still be true and the
|
||||
// startWasChanged event would be triggered inappropriately.
|
||||
var controller = this.get('controller'),
|
||||
oldStart = this.get('controller.start');
|
||||
oldStart = parseInt(this.get('controller.start'));
|
||||
Ember.run.next(function() {
|
||||
if (! params.start || ! controller || ! controller.get('loaded') || params.start === oldStart) {
|
||||
if (! params.start || ! controller || ! controller.get('loaded') || parseInt(params.start) === oldStart) {
|
||||
return;
|
||||
}
|
||||
controller.trigger('startWasChanged', params.start);
|
||||
|
Loading…
x
Reference in New Issue
Block a user