[Dojo-interest] how to break out from a dojo.foreach loop?

Kenton Smeltzer ksmeltzer at gmail.com
Thu Jun 10 12:47:58 EDT 2010


try doing a return. I have not tried it personally, but it may work.

On Jun 10, 2010, at 12:43 PM, zone26 at aol.com wrote:

> 
> 
> how to break out from a dojo.foreach loop?
>  
> dojo.foreach (aArray, function(item){
>             if (item.isInstanceOf(something))
>                   break;  //<==========================doesn't work ???
> })
> _______________________________________________
> FAQ: http://dojotoolkit.org/support/faq
> Book: http://docs.dojocampus.org
> Dojo-interest at mail.dojotoolkit.org
> http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.dojotoolkit.org/pipermail/dojo-interest/attachments/20100610/4a844ad6/attachment.htm 


More information about the Dojo-interest mailing list