getRandomId
Get random id to access the element.
Returns
String
:
id to access the element
handleEvent
Event handler.
Parameters
Returns
function
:
handler
openTab
Open url in browser.
Parameters
addonFetch
expose web equivalent fetch API.
addonFetch
addonSearch
Render search response message.
addonSearch
Parameters
localforageBrain
This brain do a trick to chatLog to save html as string and
convert it back when restored.
Allowed configs:
- messageSize: limit saved chatLog size
localforageBrain
Static Members
Public: Store key-value pair under the private namespace and extend
existing @data before emitting the 'loaded' event.
Parameters
Returns
object
:
the instance for chaining.
Public: Get value by key from the private namespace in this.data
or return null if not found.
Parameters
Returns
Object
:
value
Public: Remove value by key from the private namespace in this.data
if it exists.
Parameters
Returns
Object
:
the instance for chaining.
Public: Emits the 'save' event so that 'brain' scripts can handle
persisting.
save(): void
Returns
void
:
.