From d88e7072bda847eaaf18a9971d51c2161937942a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 20 Feb 2018 01:00:41 +0300 Subject: [PATCH] tweaking and getting ready for refactoring... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/store.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/features/store.js b/ui (gen4)/features/store.js index 205d460a..9bc9062a 100755 --- a/ui (gen4)/features/store.js +++ b/ui (gen4)/features/store.js @@ -146,6 +146,7 @@ var StoreActions = actions.Actions({ } }], + prepareStoreToSave: ['- Store/', core.doc` @@ -165,13 +166,13 @@ var StoreActions = actions.Actions({ }, } `, - function(query, data){ + function(query){ var defaults = this.parseStoreQuery() query = this.parseStoreQuery(query) var stores = query.store || defaults.store // populate the store... - data = data || {} + data = {} Object.keys(this.stores) // only populate the requested handlers... .filter(function(store){ @@ -191,12 +192,19 @@ var StoreActions = actions.Actions({ } }], // XXX use query??? + // XXX should this be the same as .prepareStoreToSave(..)??? prepareStoreToLoad: ['- Store/', core.doc` NOTE: this can be called multiple times, once per each store. NOTE: only one store data set is included per call.`, - function(data){ return data || {} }], + function(query){ return {} }], + + + + + // XXX EXPERIMENTAL STUFF... + // XXX this avoids the .prepareStoreTo*(..) API... store: ['- Store/',