ImageGrid/ui (gen4)/features/experimental.js
Alex A. Naanou 6a9ad3ba15 tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2016-08-21 02:19:24 +03:00

55 lines
1.4 KiB
JavaScript
Executable File

/**********************************************************************
*
*
*
**********************************************************************/
((typeof define)[0]=='u'?function(f){module.exports=f(require)}:define)
(function(require){ var module={} // make module AMD/node compatible...
/*********************************************************************/
var actions = require('lib/actions')
var features = require('lib/features')
var core = require('features/core')
/*********************************************************************/
var ExperimentActions = actions.Actions({
/* trying an argument mutation method... (FAILED: arguments is mutable)
argumentMutation: [
function(a, b){
console.log('ACTIONS ARGS:', a, b)
}],
*/
})
var ExperimentFeature =
module.ExperimentFeature = core.ImageGridFeatures.Feature({
title: '',
doc: '',
tag: 'experiments',
isApplicable: function(actions){ return actions.experimental },
actions: ExperimentActions,
handlers: [
/* trying an argument mutation method... (FAILED: arguments is mutable)
['argumentMutation.pre',
function(a, b){
console.log('EVENT ARGS:', a, b)
arguments[0] += 1
arguments[1] += 1
}],
*/
],
})
/**********************************************************************
* vim:set ts=4 sw=4 : */ return module })