reciosonny
9/11/2017 - 10:47 AM

For previous versions of browsers

For previous versions of browsers

if (!Object.create) {	
	Object.create = function (o) {
		if (arguments.length > 1) {
			throw new Error("Object.create only accepts 1 parameter");
		}
		function F() { }
		F.prototype = o;
		return new F();
	}
}