Skip to content

Instantly share code, notes, and snippets.

@itkr
Created October 16, 2013 02:13
Show Gist options
  • Save itkr/7001619 to your computer and use it in GitHub Desktop.
Save itkr/7001619 to your computer and use it in GitHub Desktop.
function extend(Child, Parent) {
var NewParent = Parent;
if(typeof Parent.prototype.parent !== "undefined"){
NewParent = Animate.tools.extend(Parent, Parent.prototype.parent);
}
Child.prototype = new NewParent();
Child.prototype.parent = NewParent;
return Child;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment