Skip to content

Instantly share code, notes, and snippets.

@davidrenne
Created March 19, 2014 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidrenne/9646574 to your computer and use it in GitHub Desktop.
Save davidrenne/9646574 to your computer and use it in GitHub Desktop.
Greatest Headache Preventer ONLOAD
if (window.location.hostname == 'localhost') {
$('[id]').each(function(){
var ids = $('[id="'+this.id+'"]');
if(ids.length>1 && ids[0]==this)
alert('Dev Err: Multiple IDs #'+this.id);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment