Forums > Javascript

Generic JavaScript callback

September 5, 2010 | 2:19 am

Hello,

I’m working on a listener for all parts of the live ui through MaxForLive. What I would like is to create a generic base function that can be reused for the different callbacks. Is this possible in JavaScript???

Thanks,
Brett


September 5, 2010 | 4:30 am

It’s possible to do this in JavaScript. Here is a CodeProject.com article that covers a couple of possible approaches: http://www.codeproject.com/Articles/38909/A-simple-JavaScript-generic-type-pattern-implement.aspx


September 13, 2010 | 4:00 am

This is excellent.

Thank you for your help.

Brett


Viewing 3 posts - 1 through 3 (of 3 total)