Created
March 19, 2014 17:18
-
-
Save davidrenne/9646574 to your computer and use it in GitHub Desktop.
Greatest Headache Preventer ONLOAD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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