code_junkie

Best way to use Javascript's “good parts”

Nov 12th, 2011
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. if (typeof Object.create !== 'function') {
  2. Object.create = function(o) {
  3. var F = function () {};
  4. F.prototype = o;
  5. return new F();
  6. }
Add Comment
Please, Sign In to add comment