Methods
observe(name, callback)
- Source:
Observe a property. The callback will be called immediately with the current value and whenever the property changes.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | The property name. |
callback |
function | The callback function. |