[jQuery] How to extend a function

2008-05-02 Thread Darthmahon
Hi guys, I'm using thickbox to pop up content, but the thickbox.js is shared between multiple projects which means I cannot edit the core functions in that file. Instead, I want to run some "extra" javascript on one particular project and I wondered if there was a way to extend an existing funct

[jQuery] How to extend a function

2008-05-02 Thread Darthmahon
Hi, I'm using thickbox to show content around a site, but the core thickbox.js is shared by multiple sites. For one particular site, I need to add some custom javascript when certain thickbox functions are called, such as TB_show and TB_remove. I've tried the code below, but this doesn't work.