8
Qualcuno può mostrarmi come uscire da un ciclo Sencha Ext.each?Sencha: Come uscire da Ext.each
Qualcuno può mostrarmi come uscire da un ciclo Sencha Ext.each?Sencha: Come uscire da Ext.each
ha trovato la mia risposta se si restituisce false, non eseguirà l'iterazione successiva sul ciclo.
Ext.each(arrayObj, function(obj){
if(obj.isSomethingTrue()){
doSomething();
return false; /*this will prevent each from looking at
the next obj in the arrayObj*/
}
});