1
0
Fork 0

Combined file now exports {Final,Abstract}Class

closure/master
Mike Gerwitz 2011-05-23 07:12:46 -04:00
parent 8109d1e32a
commit fdee02adc9
3 changed files with 11 additions and 4 deletions

View File

@ -117,7 +117,7 @@ error will result. Similarily, if a class is declared to be abstract and
contains *no* abstract methods, an error will be thrown. contains *no* abstract methods, an error will be thrown.
````javascript ````javascript
var Class = require( 'easejs' ).Class; var AbstractClass = require( 'easejs' ).AbstractClass;
var AbstractFoo = AbstractClass( var AbstractFoo = AbstractClass(
{ {

View File

@ -78,7 +78,12 @@ while ( i-- )
"'easejs' namespace is defined within combined file" "'easejs' namespace is defined within combined file"
); );
[ 'Class', 'Interface' ].forEach( function( item ) [
'Class',
'AbstractClass',
'FinalClass',
'Interface'
] .forEach( function( item )
{ {
assert.ok( assert.ok(
sandbox.easejs[ item ], sandbox.easejs[ item ],

View File

@ -83,7 +83,9 @@ var easejs = {};
/**{CONTENT}**/ /**{CONTENT}**/
// the following should match the exports of /index.js // the following should match the exports of /index.js
ns_exports.Class = module['class'].exports; ns_exports.Class = module['class'].exports;
ns_exports.Interface = module['interface'].exports; ns_exports.AbstractClass = module['class_final'].exports;
ns_exports.FinalClass = module['class_abstract'].exports;
ns_exports.Interface = module['interface'].exports;
} )( easejs ); } )( easejs );