Skip to content

Instantly share code, notes, and snippets.

@Olical
Created June 6, 2011 09:35
Show Gist options
  • Save Olical/1010002 to your computer and use it in GitHub Desktop.
Save Olical/1010002 to your computer and use it in GitHub Desktop.
Stops Mootools throwing errors when it can not find an element via id
(function(){var a=document.id;document.id=function(b,c,d){return a(b,c,d)||new Element("p")}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment