__get("property")
get the value of property
Type | Name | description |
---|---|---|
String | "property" | The property to get value of |
__set("property", value)
set the value of property
Type | Name | description |
---|---|---|
String | "property" | The property to get value of |
Mixed | value | the value to set the property to |
__defineGetter("property", Function)
set the get-accessor
Type | Name | description |
---|---|---|
String | "property" | The property to set the get accessor |
Function|String | Function | Function to be called when getting the property value |
__lookupGetter("property")
return the get-accessor
Type | Name | description |
---|---|---|
String | "property" | The property to set the get accessor |
__assign(IDispatch[, ...])
copy the values of all properties from one or more source objects to a the object
Type | Name | description |
---|---|---|
IDispatch | IDispatch | Source IDispatch object. Note: normal IDispatch objects will result in a crash. |
__defineSetter("property", Function)
set the set-accessor
Type | Name | description |
---|---|---|
String | "property" | The property to set the get accessor |
Function|String | Function | Function to be called when setting the property value |
__lookupSetter("property", Function)
get the set-accessor
Type | Name | description |
---|---|---|
String | "property" | The property to set the get accessor |
__keys()
get all property names defined in object
Type | Name | description |
---|
__unset("property")
delete a property from the object
Type | Name | description |
---|---|---|
String | "property" | The property to delete |
__preventExtensions()
prevents new properties from ever being added to the object
Type | Name | description |
---|
__isExtensible()
determines if an object is extensible (whether it can have new properties added to it).
Type | Name | description |
---|
__seal()
seals the object, preventing new properties from being added to it and marking all existing properties as non-configurable. Values of present properties can still be changed
Type | Name | description |
---|
__isSealed()
determines if an object is sealed
Type | Name | description |
---|
__freeze()
freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their configurability, from being changed
Type | Name | description |
---|
__isFrozen()
determines if an object is frozen.
Type | Name | description |
---|
__destructor(DestructorFunction)
DestructorFunction is called when the lifetime of the object ends
Type | Name | description |
---|---|---|
Function|String | DestructorFunction | Function to be called when lifetime of the object ends |
Bool
Function([AccessorObject])
The callback function used with accessors
Function is a placeholder for the application-defined function name
Type | Name | description |
---|---|---|
IDispatch | AccessorObject | A IDispatch object used to access passed data and self |
A locked IDispatch object, used with Accessor callback Function
Type | Name | description | Access |
---|---|---|---|
IDispatch | parent | The IDispatch object containing the accessor. WARNING: accessing other properties via this object will still trigger accessors. Be careful |
Read only |
IDispatch | arguments | A locked IDispatch object. For more info, see ArgumentsObject |
|
Any | ret | The value passed in the set-accessor. This is not used by the get-accessor | Read and Write |
Any | val | The value of the property the accessor is bound to | Read and Write |
A locked IDispatch object, used with the AccessorObject
Type | Name | description | Access |
---|---|---|---|
int32 | length | number of arguments passed with the call | Read and Write |
Array | values | the arguments passed with the call | Read and Write |
the callback function used with destructors
Type | Name | description |
---|---|---|
IDispatch | self | The IDispatch object containing the destructor |