Allowing controller to be specified as a class, this allows users to extend other controllers through Y.extend, while maintaining the prototype chain.
Added back the dispatch helper rs addon for handling mojit's addons. The RS addon keeps track of all the controllers and ac addons and then during the resolving of mojit details, it determines all the addons required by a controller by iterating through its ac addon and controller requirements.
Added back the dispatch helper rs addon for handling mojit's addons. The RS addon keeps track of all the controllers and ac addons and then during the resolving of mojit details, it determines all the addons required by a controller by iterating through its ac addon and controller requirements.
Fixed tests, brought back the dispatch-helper test.
Util.heir now checks if the argument is a function, if so it just constructs it. Added util.extend a wrapper around Y.extend to allow object literals in addition to functions.
Making sure that a mojit's entire dependency tree is loaded by using getMojitDetails which recursively loads dependencies. Also making sure that if the mojit is required on the client side that details.modules contains not just its modules but also all the modules of its dependencies.
Updated common tests such that lazyMojits/lazyLangs are on. Also testing inheritance by introducing the ColorChild mojit, whose controller/model/binder the Red/Blue/GreenChild mojits extend. Also introduced the PurpleChild mojit which extends modules in both the Red/Blue/ColorChild mojits; this demonstrates multiple levels of inheritance.
Updated tests to also test the PurpleChild mojit.
Using the shallowest YUI module if there are duplicates.
Updating the loader in the TunnelProxy controller and adding the new loader to the meta, to ensure that after the ajax request, the client has up to date loader meta and knows how to load any newly added binders/langs from lazy loaded mojits/langs.
Updated unit tests.
Dispatch fixes that takes care of corner cases such as yui modules with the same name but client/server affinities, duplicate yui names at different levels or with different selectors.
Removed unused code. Making sure that _staticDetails exists, this may be the case when using lazyMojits/lazyLangs and executing a mojit without going through the mojito-handler-static middleware (for example through some testing framework like mojito-markup-test)
Merged develop.
Updated history.
Version 0.9.7
Update HISTORY.md
Removed unnecessary param from test filename.
Merge branch 'extend-mojits' of github.com:yahoo/mojito into extend-mojits
Update HISTORY.md