I've got a fairly simple loop that supposed to run through all elements in the document and stick the ones with a class containing "toggler" in an array. Here's a JSFiddle with an example
As you can see, there are obviously 3 togglers defined but the loop is only counting two. It seems to be skipping any element directly following a positive match, but I can't figure out why. Any ideas?