mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
more refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a4d4fe949f
commit
108f01021e
@ -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
|
||||
|
||||
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user