Advertisement
Guest User

Untitled

a guest
Oct 10th, 2011
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(!(Object.create instanceof Function)) // Incomplete fallback, ignores the properties
  2.     Object.create = function(object/*, descriptors*/) { // descriptors object part.
  3.       var f = new Function;
  4.       f.prototype = object;
  5.       return new f;
  6.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement