Moved class extend() export to the top of the module to make it more noticable in the mess of functions
parent
86bbef6f77
commit
60bf9deaf5
28
lib/class.js
28
lib/class.js
|
@ -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
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue