I have a PickList (org.apache.click.extras.control.PickList) with thousands of
items in it.  When using it, it worked fine when adding items from the left to 
right window of the PickList , but would take several minutes to remove even a 
single item (using IE 7 and 9, firefox only took about 6 seconds).

I'm not too good with JavaScript...but...I was able to trace through the 
JavaScript and find the line of code that causes the slowness.  

It's in: /click/extras-control.js 
Function: pickListMoveItem()

The line of code is: to.options[toIndex] = 
  new Option(hidden.options[i].text, hidden.options[i].value);

I don't understand exactly what that line of code is doing.  
However, if I simply comment it out, the problem goes away (ie. it works 
instantly) AND the PickList seems to still work correctly.  

My questions is, what was that line of code doing, and what (if anything) am I 
loosing by commenting it out?

Thanks.

Tim


Reply via email to