Hi,

On Wednesday 28 September 2011 10:01:17 omrihar wrote:
> I have a qx.ui.list.List binded to a qx.data.Array which is the model of
> the data binding (I add to it a marshalled JSON objects).
> 
> I added a button which removes items from the Array (and through it from
> the List). In order to remove the items I use something like:
> var sel = list.getSelection().getItem(0);
> var id = array.indexOf(sel);
> array.removeAt(id);
> 
> I also used simply array.remove(sel). All this works fine as long as i
> don't need to delete the last item in the array. if i try to remove the
> last item (and there is more than one item in the list), I get a "too much
> recursion" error. I have defined a sorter on the list and tried disabling
> it but it didn't change anything.
> 
> Any ideas?
Can you please post a little playground demo where we can check out your code? 
This way I can grab your code and do some quick debugging to check out what's 
going wrong here.

Regards,
  Alex

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to