mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30: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
|
// so to avoid recursion do not use these in the specific
|
||||||
// actions...
|
// actions...
|
||||||
|
|
||||||
|
// Data...
|
||||||
|
get data(){
|
||||||
|
var d = this.__data = this.__data || data.Data()
|
||||||
|
return d
|
||||||
|
},
|
||||||
|
set data(value){
|
||||||
|
this.__data = value },
|
||||||
|
|
||||||
// Base ribbon...
|
// Base ribbon...
|
||||||
get base(){
|
get base(){
|
||||||
return this.data.base
|
return this.data.base
|
||||||
|
|||||||
@ -18,8 +18,6 @@ var actions = require('lib/actions')
|
|||||||
var features = require('lib/features')
|
var features = require('lib/features')
|
||||||
var toggler = require('lib/toggler')
|
var toggler = require('lib/toggler')
|
||||||
|
|
||||||
var data = require('imagegrid/data')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*********************************************************************/
|
/*********************************************************************/
|
||||||
@ -82,13 +80,6 @@ function(attr, states, a, b){
|
|||||||
//
|
//
|
||||||
var ImageGridMetaActions =
|
var ImageGridMetaActions =
|
||||||
module.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...
|
// Test if the action is a Toggler...
|
||||||
//
|
//
|
||||||
isToggler: actions.doWithRootAction(function(action){
|
isToggler: actions.doWithRootAction(function(action){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user