enq.js
function argumentFilter(args){
		var ret;
		if (typeof args[0] == 'object') {
			args=args[0];
			ret={};
			for (var i in args) if (args.hasOwnProperty(i) && typeof args[i] == 'function') {
				ret[i]=args[i];
			}
			return ret;
		}
		ret=[];
		for (var i=0,ii=args.length;i<ii;i++) if (typeof args[i] == 'function') {
			ret.push(args[i]);
		}
		return ret;
	}
function argumentFilter(args){
		var ret;
		if (typeof args[0] == 'object') {
			args=args[0];
			ret={};
			for (var i in args) if (args.hasOwnProperty(i) && typeof args[i] == 'function') {
				ret[i]=args[i];
			}
			return ret;
		}
		ret=[];
		for (var i=0,ii=args.length;i<ii;i++) if (typeof args[i] == 'function') {
			ret.push(args[i]);
		}
		return ret;
	}
function argumentFilter ( args ) { var ret ; if ( typeof args [ 0 ] == 'object' ) { args = args [ 0 ] ; ret = { } ; for ( var i in args ) if ( args . hasOwnProperty ( i ) && typeof args [ i ] == 'function' ) { ret [ i ] = args [ i ] ; } return ret ; } ret = [ ] ; for ( var i = 0 , ii = args . length ; i < ii ; i ++ ) if ( typeof args [ i ] == 'function' ) { ret . push ( args [ i ] ) ; } return ret ; }
If first item of args is an object, it returns the functions contained there else return a list of functions in args
If first item of args is an object it returns the functions contained there else return a list of functions in args