From c34f40db195c8cd0188b90058bcbfb1d7b4e62d1 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Wed, 10 Nov 2010 23:35:57 -0500 Subject: [PATCH] Converted vars to conventional function delcarations (no difference; just preference) --- lib/class.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/class.js b/lib/class.js index fedaf9e..ccea8a3 100644 --- a/lib/class.js +++ b/lib/class.js @@ -48,9 +48,7 @@ exports.extend = function( base ) * * @return undefined */ -var Class = function() -{ -}; +function Class() {}; /** @@ -66,7 +64,7 @@ var Class = function() * * @return undefined */ -var prop_copy = function( props, dest ) +function prop_copy( props, dest ) { // copy each of the properties to the destination object for ( property in props ) @@ -133,7 +131,7 @@ var prop_copy = function( props, dest ) * * @return {Object} extended class */ -var extend = function() +function extend() { var args = Array.prototype.slice.call( arguments ), props = args.pop() || {}, @@ -170,7 +168,7 @@ var extend = function() * * @return undefined */ -var attach_extend = function( func ) +function attach_extend( func ) { /** * Shorthand for extending classes