rishson/dojoEnterpriseApp — pull request #53 by st3redstripe (2012-09-05 11:31:21+00:00)
Title: Multiapp router

This is the first version of adding routing support to Rishson

* control.ControllerWidget: Added an `addRoute(routName, params)` helper function
* util.ObjectValidator: Added support to check the validity of numbers
* base.router.README: Usage guide
* base.router._hashParser: A parser that deals with setting / getting items from the hash
* base.router.Route: Defines a single route for a widget
* base.router.Router: Used to kick-start the router within the implementing app

There are currently no tests for the router. I am having trouble finding a way to 'mock' the parser to use in testing. The parser deals with the hash() which always returns `undefined` in a test environment. Ideally I'd want to mock this to return certain values. If you can think of a way around this then I will be able to write a thorough test suite.