I have been writing a class to replace select boxes with custom UL select
boxes and i am trying to get my code to fire the onchange that is on the
selectbox
What i tried was this...
this.options.onchange = !options.onChange ? (function ()
{this.element.fireEvent("change")}.bind(this)) :
options.onChange.bind(this);
and then i have this on the click event of the list
this.options.onchange.run();
The function ran but the event didn't fire
The only way I could get it to work is by using this which I didn't think
was ideal
(function () {eval(this.element.getProperty("onchange"))}.bind(this))
Am I doing something wrong here?
Steve