Updates:
        Summary: selection boxes are not updated because function that creates  
event listeners returns NULL
        Labels: -NeedsReduction Has-Reduction

Comment #4 on issue 6637 by aoca...@chromium.org: selection boxes are not  
updated because function that creates event listeners returns NULL
http://code.google.com/p/chromium/issues/detail?id=6637

A listener is created for each item in the selection box and the up/down  
arrows. The
array of listeners are created in the function DOMEvent() in event.htm.
The listeners are then registered to listen to the changes in the selection  
box or
when the up/down arrow keys are pressed.

Chrome returns a "null" value from the DOMEvent() function which explains  
why the
code processing stops when it tries to register the listener- which then  
causes the
data not to get populated in the selection box. The original code looks  
like:

item.onchange = new DOMEvent();
item.onchange.register("test", function(val){
        changePriceType(this._input.name.replace("sizeType_", ""), val);
}.bind(item))

In the testcase, I've placed a try-catch block around the code to see what  
Chrome is
doing (and since the error is caught, the data is populated)

Files are at: (or see attached)
http://go/reductions/6637/test_standard.html

Attachments:
        6637.zip  5.8 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to