mk-framework/js/core-lib/DataStore.js
Files
Root: mk-framework/js/core-lib/
Document
File: js/core-lib/DataStore.js
Factory
DataStore
return function DataStore( ) { // factory fun: 019b7a57-debd-7367-b324-56169e30e044Intended for modules to publish data meant to be public.
Module registers a data structure given in an object `{...}` at DataStore(), receives a reader and a writer. To every other non-owner module accesses it trough dataStore.[registered-name].[specified paths], like `dataStore.connection.state`.
Module registers a data structure given in an object `{...}` at DataStore(), receives a reader and a writer. To every other non-owner module accesses it trough dataStore.[registered-name].[specified paths], like `dataStore.connection.state`.
Returns
dataStore
return
return dataStore; // factory ret: 019b7a64-d4e0-7956-9e92-98a92b163a63(no return description)
Methods (1)
function register // method fun: 019b7a66-8b88-751b-9b2b-b4e14fb9c91b(no method description)
Options
ctx
option
ctx, // method opt: 019b7a67-b191-77cd-8a54-ccd39e6ceef5(no description)
defaults
option
defaults = null // method opt: 019b7a68-341c-7658-80c6-7d39fb229bc8(no description)
Returns
reader
return
reader : rec.readStore, // method ret: 019b7a69-952d-7a38-b7e5-62c0481ef860(no return description)