Converted vars to conventional function delcarations (no difference; just preference)
parent
4e38898c93
commit
c34f40db19
10
lib/class.js
10
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
|
||||
|
|
Loading…
Reference in New Issue