Methods
destroy(obj, module, label)
- Source:
destroy
acts as a destructor for obj
. All top-level methods of obj
are replaced by methods that issue a
console warning.
Example
destroy( instance, "myThingerPackage", "Thinger" );
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object | The object to destroy. |
module |
string | The package or library name. |
label |
string | An identifying label for the entity being destroyed. |
Type Definitions
EventHandler(eventData)
EventHandler
defines the event handler signature expected by Events
.
Parameters:
Name | Type | Description |
---|---|---|
eventData |
Object | The event data associated with the event. |
StorageEvent
- Source:
- See:
Properties:
Name | Type | Description |
---|---|---|
key |
string | null | The storage item key. |
oldValue |
Object | string | null | The old value. |
newValue |
Object | string | null | The new value. |
cleared |
boolean |
|
created |
boolean |
|
deleted |
boolean |
|
modified |
boolean |
|
StorageEvent
defines the events dispatched by LocalStorage
.
Type:
- Object