I'm writing some code which does one thing when onreadystatecha nge
occurs, e.g.
handle.onreadys tatechange = function() { blah(handle,oth er_params) };
....but sometimes I need to add another, so it becomes:
handle.onreadys tatechange = function() {
whatever_was_pr eviously_define d(whatever);som e_other_functio n(handle) };
How can I easily add some_other_func tion(handle) without knowing
whatever_was_pr eviously_define d(whatever)?
Note it's important that the functions are executed in this order.
Thanks,
Ian
occurs, e.g.
handle.onreadys tatechange = function() { blah(handle,oth er_params) };
....but sometimes I need to add another, so it becomes:
handle.onreadys tatechange = function() {
whatever_was_pr eviously_define d(whatever);som e_other_functio n(handle) };
How can I easily add some_other_func tion(handle) without knowing
whatever_was_pr eviously_define d(whatever)?
Note it's important that the functions are executed in this order.
Thanks,
Ian
Comment