mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
some cleanup and scafolding...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
82821a2bb0
commit
aefac98381
@ -366,7 +366,10 @@ module.PartialRibbons = core.ImageGridFeatures.Feature({
|
||||
priority: 'high',
|
||||
|
||||
tag: 'ui-partial-ribbons',
|
||||
depends: ['ui'],
|
||||
exclusive: ['ui-partial-ribbons'],
|
||||
depends: [
|
||||
'ui'
|
||||
],
|
||||
|
||||
|
||||
actions: PartialRibbonsActions,
|
||||
|
||||
@ -16,27 +16,34 @@ var core = require('features/core')
|
||||
|
||||
/*********************************************************************/
|
||||
|
||||
var FeatureActions = actions.Actions({
|
||||
emptyAction: ['- Demo/Empty action',
|
||||
function(){
|
||||
var PartialRibbonsActions = actions.Actions({
|
||||
updateRibbon: ['- Interface/Update partial ribbon size',
|
||||
function(target, w, size, threshold){
|
||||
// XXX
|
||||
}],
|
||||
resizeRibbon: ['- Interface/Resize ribbon to n images',
|
||||
function(target, size){
|
||||
// XXX
|
||||
}],
|
||||
})
|
||||
|
||||
var Feature =
|
||||
module.Feature = core.ImageGridFeatures.Feature({
|
||||
var PartialRibbons =
|
||||
module.PartialRibbons = core.ImageGridFeatures.Feature({
|
||||
title: '',
|
||||
doc: '',
|
||||
|
||||
// XXX
|
||||
tag: 'feature-tag',
|
||||
priority: 'high',
|
||||
|
||||
tag: 'ui-partial-ribbons-2',
|
||||
exclusive: ['ui-partial-ribbons'],
|
||||
depends: [
|
||||
// XXX
|
||||
'ui',
|
||||
],
|
||||
|
||||
actions: FeatureActions,
|
||||
actions: PartialRibbonsActions,
|
||||
|
||||
handlers: [],
|
||||
handlers: [
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user