lib/function_inheritance.js
function doConstructorTask(constructor, task) {

		var finished;

		finished = finished_constitutors.get(constructor);

		if (!finished) {
			finished = [];
			finished_constitutors.set(constructor, finished);
		}

		if (finished.indexOf(task) == -1) {
			task.call(constructor);
			finished.push(task);
		}
	}
function doConstructorTask(constructor, task) {

		var finished;

		finished = finished_constitutors.get(constructor);

		if (!finished) {
			finished = [];
			finished_constitutors.set(constructor, finished);
		}

		if (finished.indexOf(task) == -1) {
			task.call(constructor);
			finished.push(task);
		}
	}
function doConstructorTask ( constructor , task ) { var finished ; finished = finished_constitutors . get ( constructor ) ; if ( ! finished ) { finished = [ ] ; finished_constitutors . set ( constructor , finished ) ; } if ( finished . indexOf ( task ) == - 1 ) { task . call ( constructor ) ; finished . push ( task ) ; } }
Do the given task for a given constructor

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

@param    {Function}   constructor
@param    {Function}   task
Do the given task for a given constructor