Core JavaScript 1.5 Reference:Global Objects:Object: lookupSetter
From MDC
Contents |
[edit] Summary
Return the function bound as a setter to the specified property.
[edit] Syntax
obj.__lookupSetter__(sprop)
[edit] Parameters
-
sprop - a string containing the name of the property whose setter should be returned
[edit] Description
If a setter has been defined for an object's property, it's not possible to reference the setter function through that property, because that property refers to the return value of that function. __lookupSetter__ can be used to obtain a reference to the setter function.