lib/function_inheritance.js
function doConstitutors(constructor) {

		var waiting,
		    tasks,
		    i;

		if (has_constituted.get(constructor)) {
			return;
		}

		has_constituted.set(constructor, true);

		tasks = constructor.constitutors;

		if (tasks) {
			for (i = 0; i < tasks.length; i++) {
				doConstructorTask(constructor, tasks[i]);
			}
		}

		waiting = waiting_children.get(constructor);

		if (!waiting || !waiting.length) {
			return;
		}

		for (i = 0; i < waiting.length; i++) {
			doConstitutors(waiting[i]);
		}
	}
function doConstitutors(constructor) {

		var waiting,
		    tasks,
		    i;

		if (has_constituted.get(constructor)) {
			return;
		}

		has_constituted.set(constructor, true);

		tasks = constructor.constitutors;

		if (tasks) {
			for (i = 0; i < tasks.length; i++) {
				doConstructorTask(constructor, tasks[i]);
			}
		}

		waiting = waiting_children.get(constructor);

		if (!waiting || !waiting.length) {
			return;
		}

		for (i = 0; i < waiting.length; i++) {
			doConstitutors(waiting[i]);
		}
	}
function doConstitutors ( constructor ) { var waiting , tasks , i ; if ( has_constituted . get ( constructor ) ) { return ; } has_constituted . set ( constructor , true ) ; tasks = constructor . constitutors ; if ( tasks ) { for ( i = 0 ; i < tasks . length ; i ++ ) { doConstructorTask ( constructor , tasks [ i ] ) ; } } waiting = waiting_children . get ( constructor ) ; if ( ! waiting || ! waiting . length ) { return ; } for ( i = 0 ; i < waiting . length ; i ++ ) { doConstitutors ( waiting [ i ] ) ; } }
Do the constitutors for the given constructor

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

@param    {Function}   constructor
Do the constitutors for the given constructor