Combined file now exports {Final,Abstract}Class
parent
8109d1e32a
commit
fdee02adc9
|
@ -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(
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 ],
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue