more refactoring...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-11-28 20:24:01 +03:00
parent a4d4fe949f
commit 108f01021e
2 changed files with 8 additions and 9 deletions

View File

@ -97,6 +97,14 @@ actions.Actions({
// so to avoid recursion do not use these in the specific
// actions...
// Data...
get data(){
var d = this.__data = this.__data || data.Data()
return d
},
set data(value){
this.__data = value },
// Base ribbon...
get base(){
return this.data.base

View File

@ -18,8 +18,6 @@ var actions = require('lib/actions')
var features = require('lib/features')
var toggler = require('lib/toggler')
var data = require('imagegrid/data')
/*********************************************************************/
@ -82,13 +80,6 @@ function(attr, states, a, b){
//
var ImageGridMetaActions =
module.ImageGridMetaActions = {
// XXX experimental...
get data(){
var d = this.__data = this.__data || data.Data()
return d
},
set data(value){ this.__data = value },
// Test if the action is a Toggler...
//
isToggler: actions.doWithRootAction(function(action){