PureMVC Port to Javascript / JavaScript Objs port by Frederic Saunier
PureMVC – Copyright© 2006-2012 Futurescale, Inc., Some rights reserved.
-———————————————————————————————————-
Release Date: 10/21/2012
Platform: JavaScript / Objs
Version: 2
Revision: 0
Author: Frederic Saunier <[email protected]>
License: Creative Commons Attribution 3.0 United States License
License for Objs: GNU General Public License Version 3
-———————————————————————————————————-
This port, inspired originally from PureMVC for AS3 standard port by Cliff
Hall. The source classes are in separate files mirroring the original and the
minified library is about 9K. The minification is brought to this port using
YUICompressor.
First official PureMVC JavaScript port released on PureMVC.org with the
Framework source and a demo based on the Employee Admin AS3 demo.
As this port depends on the Objs library you may want to start by reading the
Objs library documentation.
The only thing you may know which is specific to this port (gratefully to
namespaces) is that you can hide the PureMVC classes from the global (the
window object in most cases) context.
This can be made by setting a HidePureMVC property to true before loading the
port.
Example:
This made classes from the PureMVC framework will not pollute the global
context and can only be accessed through their namespace.
To build the project you’ll need Ant to run the
/build/build.xml file located in the build YUICompressor. The task concat all
the JavaScript files in one, next compress and minify it. The YUICompressor
munge option is activated.
The Ant task need both
YUICompressor and
YUIant. Respective jar
file for both library need to be copied in the /build/lib/ folder for the task
to run correctly.
Unit Tests follow the PureMVC for AS3 standard port with some specific
additions for the JavaScript language.
Unit tests are built upon
YUI Test Standalone Library.
The tests run by opening the /index.html. The test runner and Unit Test
framework loads all the libraries it needs from the /lib/yuitest folder. They
were first built upon YUI 3.2.0 and YUITest 1.0.0 b1 standalone libraries.