--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
If the latter is the case, then the hasEventHandler() method *should*
work, as it turns around and calls hasEventHandlerDefinition() on the
module loader array, and therefore it shouldn't matter whether the
event handler in question has been loaded yet.
--
Ezra Parker
Joel,
It should be possible to do what you want by inserting your own phase into the request lifecycle. I do this in my apps to provide url routing.
eg. /user/{username}
The code is on github - https://github.com/d1rtym0nk3y/ModelGlue-Url-Router
The trick is to override url.event before the MG gets to the invocation phase, so you can do this during population.
I'm on my mobile atm and there no docs apart from the example but if you have any questions I'll take a look when I'm back in the office and try to help
Chris