SyntaxFix
Write A Post
Hire A Developer
Questions
Vava's answer is on the mark. If you use jQuery, then the $.each() function takes care of this, hence it is safer to use.
$.each()
$.each(evtListeners, function(index, elem) { // your code });