Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(!(Object.create instanceof Function)) // Incomplete fallback, ignores the properties
- Object.create = function(object/*, descriptors*/) { // descriptors object part.
- var f = new Function;
- f.prototype = object;
- return new f;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement