2014-08-29 19:06:45 +04:00
|
|
|
/**********************************************************************
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
|
|
//var DEBUG = DEBUG != null ? DEBUG : true
|
|
|
|
|
|
|
|
|
|
define(function(require){ var module = {}
|
|
|
|
|
console.log('>>> ui')
|
|
|
|
|
|
|
|
|
|
doc = require('keyboard').doc
|
|
|
|
|
|
|
|
|
|
data = require('data')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-29 19:19:21 +04:00
|
|
|
function proxy(attr, name){
|
|
|
|
|
return function(){
|
|
|
|
|
this[attr][name].apply(this[attr], arguments)
|
|
|
|
|
return this
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-29 19:06:45 +04:00
|
|
|
/*********************************************************************/
|
|
|
|
|
|
|
|
|
|
var CLIENT_ACTIONS = {
|
|
|
|
|
// this expects the folowing attrs:
|
|
|
|
|
//
|
|
|
|
|
// .data
|
|
|
|
|
//
|
|
|
|
|
|
2014-08-29 19:19:21 +04:00
|
|
|
focusImage: doc('Focus Image',
|
|
|
|
|
proxy('data', 'focusImage')),
|
2014-08-29 19:06:45 +04:00
|
|
|
focusRibbon: doc('Focus ribbon',
|
2014-08-30 05:37:34 +04:00
|
|
|
proxy('data', 'focusRibbon')),
|
2014-08-29 19:19:21 +04:00
|
|
|
firstImage: doc('',
|
|
|
|
|
proxy('data', 'firstImage')),
|
|
|
|
|
lastImage: doc('',
|
|
|
|
|
proxy('data', 'lastImage')),
|
2014-08-29 19:06:45 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
|
* vim:set ts=4 sw=4 : */
|
|
|
|
|
return module })
|