Closed GoogleCodeExporter closed 9 years ago
base2 already provides methods for this. You can cast the options collection:
Enumerable(select.options);
Or you can use generic array methods to iterate the collection:
Array2.forEach(select.options, function(option) {
// do something
});
Is that not good enough?
Original comment by dean.edw...@gmail.com
on 3 Apr 2008 at 11:45
This also works:
forEach(select.options, function(option) {
// do something
});
Original comment by dean.edw...@gmail.com
on 3 Apr 2008 at 11:46
I guess since I was binding globally already, I wanted it to just be there.
I had tried to bind in the normal fashion when I discovered it didn't work.
base2.DOM.bind($select.options);
But that didn't work, but that was probably overkill for the desired outcome.
I didn't think to do it the way you suggested.
But no, if you don't put it in, no skin off my back. It's just a convenience.
Original comment by richy...@gmail.com
on 4 Apr 2008 at 1:15
Cool. This is a "Won't Fix" then. :-)
Original comment by dean.edw...@gmail.com
on 4 Apr 2008 at 2:37
Original issue reported on code.google.com by
richy...@gmail.com
on 3 Apr 2008 at 7:43Attachments: