Skip to content

Commit

Permalink
Merge pull request #173 from kelbongoo/master
Browse files Browse the repository at this point in the history
Fix triggers loading bug
  • Loading branch information
arunoda committed Jun 22, 2015
2 parents eedfd7a + 0179f2f commit fc45803
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions client/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -452,15 +452,19 @@ Router.prototype._initTriggersAPI = function() {
this.triggers = {
enter: function(triggers, filter) {
triggers = Triggers.applyFilters(triggers, filter);
_.extend(self._triggersEnter, triggers);
if(triggers.length) {
self._triggersEnter = self._triggersEnter.concat(triggers);
}
},

exit: function(triggers, filter) {
triggers = Triggers.applyFilters(triggers, filter);
_.extend(self._triggersExit, triggers);
if(triggers.length) {
self._triggersExit = self._triggersExit.concat(triggers);
}
}
};
};

Router.prototype._page = page;
Router.prototype._qs = qs;
Router.prototype._qs = qs;

0 comments on commit fc45803

Please sign in to comment.