lib/function_inheritance.js
function doMultipleInheritance(new_constructor, parent_constructor, proto) {

		var more;

		if (proto == null) {
			proto = Object.create(new_constructor.prototype);
		}

		// See if this goes even deeper FIRST
		// (older properties could get overwritten)
		more = Object.getPrototypeOf(parent_constructor.prototype);

		if (more.constructor !== Object) {
			// Recurse with the earlier constructor
			doMultipleInheritance(new_constructor, more.constructor, proto);
		}

		// Inject the enumerable and non-enumerable properties of the parent
		Collection.Object.inject(proto, parent_constructor.prototype);

		return proto;
	}
function doMultipleInheritance(new_constructor, parent_constructor, proto) {

		var more;

		if (proto == null) {
			proto = Object.create(new_constructor.prototype);
		}

		// See if this goes even deeper FIRST
		// (older properties could get overwritten)
		more = Object.getPrototypeOf(parent_constructor.prototype);

		if (more.constructor !== Object) {
			// Recurse with the earlier constructor
			doMultipleInheritance(new_constructor, more.constructor, proto);
		}

		// Inject the enumerable and non-enumerable properties of the parent
		Collection.Object.inject(proto, parent_constructor.prototype);

		return proto;
	}
function doMultipleInheritance ( new_constructor , parent_constructor , proto ) { var more ; if ( proto == null ) { proto = Object . create ( new_constructor . prototype ) ; } // See if this goes even deeper FIRST // (older properties could get overwritten) more = Object . getPrototypeOf ( parent_constructor . prototype ) ; if ( more . constructor !== Object ) { // Recurse with the earlier constructor doMultipleInheritance ( new_constructor , more . constructor , proto ) ; } // Inject the enumerable and non-enumerable properties of the parent Collection . Object . inject ( proto , parent_constructor . prototype ) ; return proto ; }
Do multiple inheritance

@author   Jelle De Loecker   <jelle@develry.be>
@since    0.3.6
@version  0.3.6

@param    {Function}   new_constructor
@param    {Function}   parent_constructor
@param    {Object}     proto
Do multiple inheritance