You can return the function but this wouldn't help to break the internal for 
loop.  You should iterate the selections manually:
// CODE NOT TESTED

var checkRange = function(rows)
{
  for (var j=rows.minIndex; j<=rows.maxIndex; j++) {
    if (condition){
      return false;
    }
  }
  return true;
};

var selectionRanges = this.table.getSelectionModel().getSelectedRanges();
for (var i=0; i< selectionRanges.length; i++)
{
  if (checkRange(selectionRanges[i]) == false) {
    break;
  }
}


Or even collect all row id in an array and iterate it your self.

Regards Mustafa
Von: franck34 [mailto:[email protected]]
Gesendet: Freitag, 14. September 2012 10:25
An: qooxdoo Development
Betreff: [qooxdoo-devel] break iterateSelection ?


Is there a way to stop iterateSelection ?


"break" don't work :


this.table.getSelectionModel().iterateSelection(function(row) {
    if (condition) break;
});


Thanks
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to