Generic JavaScript callback

directgumby's icon

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

willum070's icon

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

directgumby's icon

This is excellent.

Thank you for your help.

Brett