use onBeforeAction instead of onRun

This commit is contained in:
Sacha Greif 2015-01-09 15:23:30 +09:00
parent 49e92a35b4
commit 18b8576091

View file

@ -136,7 +136,7 @@ Meteor.startup( function (){
// Load Hooks
Router.onRun( function () {
Router.onBeforeAction( function () {
Session.set('categorySlug', null);
// if we're not on the search page itself, clear search query and field