Skip to content

Commit

Permalink
updating #143 which attempts to correct error #130
Browse files Browse the repository at this point in the history
This issue came up in iron-router:  iron-meteor/iron-router#620

This answer (from link above) is to pass pause as a parameter and then call it, like so: 

Router.onBeforeAction(function(pause) {
  // ...
  pause()
});
  • Loading branch information
Art1Sec8 committed May 5, 2014
1 parent 5605381 commit 09aaddd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/router.coffee
Expand Up @@ -59,12 +59,12 @@ Router.map ->

@route 'entrySignOut',
path: '/sign-out'
onBeforeAction: ->
onBeforeAction: (pause)->
Session.set('entryError', undefined)
if AccountsEntry.settings.homeRoute
Meteor.logout () ->
Router.go AccountsEntry.settings.homeRoute
@pause()
pause()

@route 'entryResetPassword',
path: 'reset-password/:resetToken'
Expand Down

0 comments on commit 09aaddd

Please sign in to comment.