Global

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)

Source:
See:

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

true if the storage was cleared.

created boolean

true if this event fired due to key being created in storage.

deleted boolean

true if this event fired due to key being removed from storage.

modified boolean

true if this event fired due to key being modified in storage.

StorageEvent defines the events dispatched by LocalStorage.

Type:
  • Object