backbone.routefilter icon indicating copy to clipboard operation
backbone.routefilter copied to clipboard

Added original callback to the before filter arguments

Open synthomat opened this issue 10 years ago • 4 comments

I didn't find a solution to call the original callback from the before-filter to do a custom routing.

synthomat avatar Jun 24 '14 14:06 synthomat

Thanks for the PR @synthomat and @cobrainer.

I just ran this and didn't see any regressions. Can you add a test case for doing this to test/backbone.routefilter_test.js?

Thanks again!

boazsender avatar Jun 27 '14 15:06 boazsender

@synthomat & @cobrainer, can you also document this behavior in the README.md.

Thank you.

boazsender avatar Jun 27 '14 15:06 boazsender

I'm also curious about your use case for this @synthomat & @cobrainer. I was just taking a pass at testing/documenting this feature, and can't come up with a use case.

boazsender avatar Jun 27 '14 16:06 boazsender

@boazsender is there another way to modify the routing chain with some logic?

However, I think I followed a wrong approach with preparing sub-layouts based on the routing chain :-/

synthomat avatar Jul 02 '14 09:07 synthomat