disable sammy and allow links run again

71 views
Skip to first unread message

Paul Biggar

unread,
Jan 13, 2013, 3:44:26 AM1/13/13
to sam...@googlegroups.com
Hi folks,

In some cases, I want to make all of my links work "normally" (that is, like in a static app, with the new url being loaded from scratch). I figure sammy.unload() should do that. It definitely does disable routing, but it doesn't cause the links to turn "normal". Any idea how to do this? I'm using 0.7.2.

Thanks,
Paul

Paul Biggar

unread,
Jan 13, 2013, 8:59:49 PM1/13/13
to sam...@googlegroups.com
I've figured out the problem I'm experiencing, and it looks like a bug in Sammy.

During run(), checkLocation() is called before _location_proxy.bind() is called. If I unload() in one of my route handlers, unload() will be called before _location_proxy.bind(). Hence, the _location_proxy.unbind() from unload(), will be for naught.

Recommendations for a fix?
Reply all
Reply to author
Forward
0 new messages