lib/init.js
function clearAndDoTasks(arr) {

		var tasks = arr.slice(0),
		    i;

		// Clear the original array
		arr.length = 0;

		for (i = 0; i < tasks.length; i++) {
			tasks[i]();
		}
	}
function clearAndDoTasks(arr) {

		var tasks = arr.slice(0),
		    i;

		// Clear the original array
		arr.length = 0;

		for (i = 0; i < tasks.length; i++) {
			tasks[i]();
		}
	}
function clearAndDoTasks ( arr ) { var tasks = arr . slice ( 0 ) , i ; // Clear the original array arr . length = 0 ; for ( i = 0 ; i < tasks . length ; i ++ ) { tasks [ i ] ( ) ; } }
Do the tasks in an array

@author    Jelle De Loecker   <jelle@develry.be>
@since     0.6.5
@version   0.6.5
Do the tasks in an array