david-d
11/6/2015 - 4:08 PM

Object.create polyfil http://jsperf.com/new-vs-object-create-including-polyfill

	/**
	 * Object.create polyfil
	 * - http://jsperf.com/new-vs-object-create-including-polyfill
	 */
	if (typeof Object.create !== 'function') {
		Object.create = function(o, props) {
			function F() {}
			F.prototype = o;
			if (typeof(props) === "object") {
				for (var prop in props) {
					if (props.hasOwnProperty((prop))) {
						F[prop] = props[prop];
					}
				}
			}
			return new F();
		};
	}