
var LcCore = {};
LcCore.bind = function(obj, func, args) {
	
	return function() {
		if(obj === true) obj = this;
		var f = typeof func === "string" ? obj[func] : func;
		
		return f.apply(obj, Array.prototype.slice.call(args || [])
				.concat(Array.prototype.slice.call(arguments)));
	};
	
}

LcCore.getEvent = function(event) {
	if(!event) return window.event;
	return event;
}
