API Docs for: 0.0.1
Show:

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

Defined in src/client-storage/storage.js:83

Available since 0.0.1

Empties the table.

Returns:

Promise:

Returnvalue of the fulfilled promise is undefined

contains

(
  • obj
)
Promise

Defined in src/client-storage/storage.js:104

Available since 0.0.1

Checks whether a table has a containes a specified record, not by reference, by by checking its property-values

Parameters:

Returns:

Promise:

Returnvalue of the fulfilled promise is a boolean specifying whether the table has a matched record

delete

(
  • key
)
Promise

Defined in src/client-storage/storage.js:161

Available since 0.0.1

Deletes a from the the storgae, specified by key

Parameters:

Returns:

Promise:

Returnvalue of the fulfilled promise is an AObject of record that has been deleted

deleteStorage

() Promise

Defined in src/client-storage/storage.js:172

Available since 0.0.1

Deletes a storage from the client

Returns:

Promise:

Returnvalue of the fulfilled promise is undefined

each

(
  • fn
  • context
)
Promise

Defined in src/client-storage/storage.js:46

Available since 0.0.1

Performs a function to all the records of the storage

Parameters:

Returns:

Promise:

Returnvalue of the fulfilled promise is undefined

get

(
  • key
)
Promise

Defined in src/client-storage/storage.js:119

Available since 0.0.1

Reads one record, specified by its key.

Parameters:

Returns:

Promise:

Returnvalue of the fulfilled promise is an Object (record)

has

(
  • key
)
Promise

Defined in src/client-storage/storage.js:93

Available since 0.0.1

Checks whether a table has a matched record, specified by key

Parameters:

Returns:

Promise:

Returnvalue of the fulfilled promise is a boolean specifying whether the table has a matched record

set

(
  • key
  • obj
)
Promise

Defined in src/client-storage/storage.js:136

Available since 0.0.1

Saves a record. Returns an undefined promise when ready.

Parameters:

Returns:

Promise:

Returnvalue of the fulfilled promise is undefined

size

() Promise

Defined in src/client-storage/storage.js:151

Available since 0.0.1

Gets the number of records

Returns:

Promise:

Returnvalue of the fulfilled promise is a number

some

(
  • fn
  • context
)
Promise

Defined in src/client-storage/storage.js:61

Available since 0.0.1

Performs a function to some the records of the storage. If the invoked function returns a trutthy value, the loop ends.

Parameters:

Returns:

Promise:

Returnvalue of the fulfilled promise is undefined