Closed ivorbosloper closed 12 years ago
I'm trying to learn git/github, so let me know if I did something wrong...
Perfect, thanks for the patch.
I'll fix a small potential issue in a further commit, because the ControllerObject passed to the router is now just copied into an empty object {} [ cfr: $.extend(this.userHandlers,userHandlers||{}) ]. It's better to keep a reference to the original object, if provided by the user.
I would like handler functions to be executed in the ControllerObject scope (instead of the current no-scope). This allows you to use
this
in the ControllerObject/handler functions. Additionally, you could extend handlers with ascope
keyword.