Meta.common Class
Access point: ac.meta.* Allows the usage of the "meta" object as a storage device, which can pass data from child mojits up towards parents.
Methods
retrieve
-
cb -
[optional]
To retrieve stashed data that has been stored by child mojits, call this function and provide a function, which will be called once the children have been dispatched and all their meta data has been merged.
Parameters:
-
cbFunctioncallback will be called with the stored merged object.
-
[optional]Object optionalscope scope of the callback.
store
-
key -
val
Stores a keyed value within the meta object of the current mojit execution. You can call this as many times as you like, but if you use the same key, you'll override previous data. Call this within child mojits when you have some data you want to make available for some reason to any parents up your hierarchy.
Parameters:
-
keyStringThe key used as the index value.
-
valObjectThe value to store.
