I need to test whether a given function object belongs to a certain class.
Under Firefox and Chromium/Chrome, I can create a dictionary of function names, and then test whether somefunction.name in class_a_functions
using function.name. This does not work in IE.
I can't seem to create a dictionary of function objects to test for a functions containment.
What is a cross-browser way to achieve this that does not involve hacking out the name from the function's toString representation and using that as a function identity. as expressed here?