Skip to content

Instantly share code, notes, and snippets.

@jaredwilli
Created August 19, 2012 13:30
Show Gist options
  • Select an option

  • Save jaredwilli/3394806 to your computer and use it in GitHub Desktop.

Select an option

Save jaredwilli/3394806 to your computer and use it in GitHub Desktop.
Object.create support if not exists
if (typeof Object.create !== "function") {
Object.create = function(o) {
function F() {}
F.prototype = o;
return new F();
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment