LocalReference
A reference to a local value. Any change to the LocalReference will be send to the remote peer.
Constructor Summary
Public Constructor | ||
public |
constructor(session: RemoteSession, reference: Reference) Create a reference to a local value. |
Method Summary
Public Methods | ||
public |
defineProperty(property: Property, descriptor: Descriptor): boolean Define a property on the reference value. |
|
public |
deleteProperty(property: Property): boolean Delete a property from the reference value. |
|
public |
deletePropertyCache(property: Property): boolean Delete property cache for a getter . |
|
public |
prevent extensions on the reference value. |
|
public |
setPropertyCache(property: Property, cachedValue: Descriptor): boolean Set property cache for getter. |
|
public |
setPrototypeOf(prototype: object | function): boolean Set the prototype of the reference value. |
Public Constructors
public constructor(session: RemoteSession, reference: Reference) source
Create a reference to a local value.
Params:
Name | Type | Attribute | Description |
session | RemoteSession | The reference remote session |
|
reference | Reference | The local reference id |
Public Methods
public defineProperty(property: Property, descriptor: Descriptor): boolean source
Define a property on the reference value.
Params:
Name | Type | Attribute | Description |
property | Property | The property |
|
descriptor | Descriptor | The property descriptor |
public deleteProperty(property: Property): boolean source
Delete a property from the reference value.
Params:
Name | Type | Attribute | Description |
property | Property | The property |
public deletePropertyCache(property: Property): boolean source
Delete property cache for a getter .
Params:
Name | Type | Attribute | Description |
property | Property | The property |