Is it possible to get notification from within JavaScript when calling an object's methods?
Example:
o.foo(arg1);
function o_ongenericcall(name, arguements)
{
switch (name)
{
case "foo":
// Do something
break;
}
}
In the above example, o is the object and I would like o_ongenericcall to be raised when any method is trying to be invoked.