Skip to content

Instantly share code, notes, and snippets.

@copenhas
Created February 3, 2011 03:41
Show Gist options
  • Select an option

  • Save copenhas/809012 to your computer and use it in GitHub Desktop.

Select an option

Save copenhas/809012 to your computer and use it in GitHub Desktop.
var linkedChild1 = Object.create(sharedParent);
var linkedChild2 = Object.create(sharedParent);
//now you become a Panda... but it could effect everyone else making them sad
linkedChild1 = Panda(linkedChild1);
var unlinked1 = Object.create(parent.clone());
var unlinked2 = Object.create(parent.clone());
//now you become a Grizzly leaving everyone else behind so you can eat them
var raaar = Grizzly(unlinked1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment