Storage Class
Creating floating Panel-nodes which can be shown and hidden.
Copyright (c) 2014 ITSA - https://github.com/itsa New BSD License - http://choosealicense.com/licenses/bsd-3-clause/
Methods
clear
()
Promise
Empties the table.
Returns:
Returnvalue of the fulfilled promise is undefined
contains
-
obj
Checks whether a table has a containes a specified record, not by reference, by by checking its property-values
Parameters:
-
obj
Object
Returns:
Returnvalue of the fulfilled promise is a boolean specifying whether the table has a matched record
delete
-
key
Deletes a from the the storgae, specified by key
Parameters:
-
key
String
Returns:
Returnvalue of the fulfilled promise is an AObject of record that has been deleted
deleteStorage
()
Promise
Deletes a storage from the client
Returns:
Returnvalue of the fulfilled promise is undefined
each
-
fn
-
context
Performs a function to all the records of the storage
Returns:
Returnvalue of the fulfilled promise is undefined
get
-
key
Reads one record, specified by its key
.
Parameters:
-
key
String
Returns:
Returnvalue of the fulfilled promise is an Object (record)
has
-
key
Checks whether a table has a matched record, specified by key
Parameters:
-
key
String
Returns:
Returnvalue of the fulfilled promise is a boolean specifying whether the table has a matched record
set
-
key
-
obj
Saves a record. Returns an undefined promise when ready.
Returns:
Returnvalue of the fulfilled promise is undefined