How to exit mootools each()
Posted
by Billy
on Stack Overflow
See other posts from Stack Overflow
or by Billy
Published on 2010-05-11T11:19:28Z
Indexed on
2010/05/11
11:24 UTC
Read the original article
Hit count: 353
How can I exit the each function when the conditions was true once?
This does not work:
$$('.box div').each(function(e) {
if(e.get('html') == '') {
e.set('html', 'test');
exit;
}
});
© Stack Overflow or respective owner