Skip to content

Instantly share code, notes, and snippets.

@fabiomcosta
Created July 5, 2010 01:34
Show Gist options
  • Select an option

  • Save fabiomcosta/463914 to your computer and use it in GitHub Desktop.

Select an option

Save fabiomcosta/463914 to your computer and use it in GitHub Desktop.
if (!Browser.Element){
Element.parent = Object;
Element.ProtoType = {'$family': function(){ return 'element'; }.hide()};
Element.mirror(function(name, method){
Element.ProtoType[name] = method;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment