__lookupGetter__

Table of contents

  1. 1. Summary
  2. 2. Syntax
  3. 3. Parameters
  4. 4. Description
  5. 5. See also
Table of contents
  1. 1. Summary
  2. 2. Syntax
  3. 3. Parameters
  4. 4. Description
  5. 5. See also

Non-standard

Deprecated

Summary

Return the function bound as a getter to the specified property.

Method of Object
Implemented in JavaScript ?
ECMAScript Edition None, but see getOwnPropertyDescriptor and getPrototypeOf.

Syntax

obj.__lookupGetter__(sprop)

Parameters

sprop
a string containing the name of the property whose getter should be returned

Description

If a getter has been defined for an object's property, it's not possible to reference the getter function through that property, because that property refers to the return value of that function. __lookupGetter__ can be used to obtain a reference to the getter function.

It is now possible to do this in a standardized way using getOwnPropertyDescriptor and getPrototypeOf.

Tags (0)

Edit tags
  • No tags

Attachments (0)

 

Attach file