1
0
Fork 0

Moved class extend() export to the top of the module to make it more noticable in the mess of functions

closure/master
Mike Gerwitz 2010-11-10 23:30:30 -05:00
parent 86bbef6f77
commit 60bf9deaf5
1 changed files with 14 additions and 14 deletions

View File

@ -29,6 +29,20 @@ var getset = ( Object.prototype.__defineGetter__ === undefined )
; ;
/**
* Creates a class, inheriting either from the provided base class or the
* default base class
*
* @param {Object} base object to extend (extends Class by default)
*
* @return {Object} extended class
*/
exports.extend = function( base )
{
return extend.apply( this, arguments );
}
/** /**
* Default class implementation * Default class implementation
* *
@ -146,20 +160,6 @@ var extend = function()
} }
/**
* Creates a class, inheriting either from the provided base class or the
* default base class
*
* @param {Object} base object to extend (extends Class by default)
*
* @return {Object} extended class
*/
exports.extend = function( base )
{
return extend.apply( this, arguments );
}
/** /**
* Attaches extend method to the given function's prototype * Attaches extend method to the given function's prototype
* *