Vladimir Dumitraskovic 12 December 2014 Great Post. I read this article again and again. One question, though: var reg = new RegExp(‘(s|^)’ + toggleClass + ‘(s|$)’); Shouldn’t this be with (s|^)…?
Great Post. I read this article again and again.
One question, though:
var reg = new RegExp(‘(s|^)’ + toggleClass + ‘(s|$)’);
Shouldn’t this be with (s|^)…?