1
0
Fork 0

Specify loop for continuing

This commit is contained in:
Gregory Eremin 2014-07-05 16:08:37 +07:00
parent 31dd47268f
commit 06b9b28a23
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@
]; ];
var links = document.getElementsByTagName('a'); var links = document.getElementsByTagName('a');
main_loop:
for (var i = 0; i < links.length; i++) { for (var i = 0; i < links.length; i++) {
var el = links[i], var el = links[i],
href = el.getAttribute('href'); href = el.getAttribute('href');
@ -28,7 +29,7 @@
el.addEventListener('mouseover', function(e) { el.addEventListener('mouseover', function(e) {
log('Link contains a stop-word "'+ word +'":', href); log('Link contains a stop-word "'+ word +'":', href);
}); });
continue; continue main_loop;
} }
}; };