JavaScriptMVC 2.0: Major Rewrite, Strong Test Suite Integration and Improved Documentation
The JavaScriptMVC team has announced v2.0, a major update & rewrite to their MVC-based JavaScript framework. The release incorporates several big changes including a rewrite of the library to leverage jQuery’s functionality and style guidelines. For example, if you have a list of entries, you can organize the event handlers like:
-
-
$.Controller.extend(“EntriesController”,{
-
“.entry click” : function($el, ev){ …}
-
“.handle draginit” : function($el, ev, drag){ … }
-
“.trash dropon” : function($el, ev, drop, drag){ …}
-
}
-
And then add ‘EntryController’ functionality like:
-
$(‘.entries_list’).entries_controller();
The new release of JSMVC offers deep integration with the Selenium web application testing system, Env.js and the projects own in-browser testing library. JavaScriptMVC has integrated all three approaches, enabling developers to write and debug tests in the browser, but automatically run the same tests in Selenium and Rhino/Env.js.
JMVC’s documentation application has also undergone a major enhancement. The interface, based off Remy Sharp’s jQuery API Browser, allows rapid search of any part of your documentation.





