/ Published in: JavaScript
Expand |
Embed | Plain Text
if (typeof Object.create != 'function') Object.create = (function() { function Subclass() {} function create(object) { var result; if (!(typeof object == 'object' && object && arguments.length == 1)) throw new TypeError(); Subclass.prototype = object; result = new Subclass(); Subclass.prototype = null; return result; } return create; }());
You need to login to post a comment.
