mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
42a141ba40
commit
50823e69a0
@ -124,7 +124,8 @@ function(cls, cfg, parent){
|
||||
parent = parent == null ? this.ribbons.viewer
|
||||
: parent instanceof Function ? parent.call(this)
|
||||
: parent
|
||||
return parent.find('.'+ cls.join('.')).length > 0 ? 'on' : 'off' },
|
||||
return parent.find('.'+ cls.join('.')).length > 0 ? 'on' : 'off'
|
||||
},
|
||||
['off', 'on'],
|
||||
function(state){
|
||||
if(state == 'on'){
|
||||
|
||||
@ -265,15 +265,15 @@ function(elem, state_accessor, states, callback_a, callback_b){
|
||||
// update the element...
|
||||
//state_accessor.call(this, e, state)
|
||||
var res = state_accessor.call(this, e, state)
|
||||
action = res !== undefined ? res : action
|
||||
//action = res !== undefined ? res : action
|
||||
|
||||
// post callback...
|
||||
if(callback_post != null){
|
||||
var res = callback_post.apply(this, [action, e].concat(args))
|
||||
action = res !== undefined ? res : action
|
||||
var r = callback_post.apply(this, [action, e].concat(args))
|
||||
action = r !== undefined ? r : action
|
||||
}
|
||||
|
||||
return action
|
||||
return res || action
|
||||
}
|
||||
|
||||
// XXX these are broken -- this is wrong...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user