Permalink
Browse files

Fix for actionWithFilters getting self nested

  • Loading branch information...
1 parent 4c6e9c7 commit d1bd46c6a1d2ecc3f7ecdea2ffaa931cd6a3d2a7 @tpett tpett committed Apr 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/knockback.controller.coffee
View
2 lib/knockback.controller.coffee
@@ -29,7 +29,7 @@ Knockback.Controller = Backbone.Router.extend
_.each @routes, (name, pattern) =>
handler = @handlerForRoute(name)
- if handler
+ if handler and not @_wrapped[name]
handler.callback = @_wrapped[name] = _.wrap handler.callback, (callback, urlFragment) =>
@actionWithFilters name, callback, urlFragment

0 comments on commit d1bd46c

Please sign in to comment.