diff --git a/lib/class.js b/lib/class.js index 1998b88..e5cf60e 100644 --- a/lib/class.js +++ b/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 * @@ -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 *