I have a function that is bound for a page object in some Javascript files that are loaded on each page.
I need to add some more functionality to that already defined event handler. Here is an example of what i mean.
The object with the currently defined click event closes a pop-up div that appears on the screen. When this is clicked (only on this certain page), i need it to reset some elements on the page.
So, i can easily enough unbind the click event, and rebind a custom one, but it would be copying a lot of code from the original close event.
If worse comes to worse, i can just do that, but i would like to avoid copying that code for this special case.
Is there a way to, sort of, append more code on to a currently created event?
thanks for any insight!