attachEvent to multiple handles elegantly


#1

I am trying to combine these two lines

comboBox.attachEvent("onChange", boxLocation); comboFreezer.attachEvent("onChange", boxLocation);
into one elegant one. I tried

(comboBox, comboFreezer).attachEvent("onChange", boxLocation);

however that does not work exactly the same.
any suggestion?


#2

As far as I can see, there is no way to combine multiple calls in one
You can use one handler for multiple components, but it will require a separate attachEvent commands.