mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 00:31:40 +00:00
fixed menu capturing and losing crop state bug...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3eb4d2c695
commit
6a1d0cf0db
@ -2342,7 +2342,18 @@ var makeActionLister = function(list, filter, pre_order){
|
||||
return o
|
||||
}
|
||||
|
||||
return a[n].apply(a, arguments)
|
||||
var res = a[n].apply(a, arguments)
|
||||
|
||||
// cleanup -- restore data that was updated by action...
|
||||
// NOTE: we do not need to worry about partial
|
||||
// updates as they are done in place...
|
||||
Object.keys(a).forEach(function(n){
|
||||
if(n != 'preventClosing'){
|
||||
that[n] = a[n]
|
||||
}
|
||||
})
|
||||
|
||||
return res
|
||||
}
|
||||
// ignore args of actions...
|
||||
} else {
|
||||
@ -2354,7 +2365,18 @@ var makeActionLister = function(list, filter, pre_order){
|
||||
return o
|
||||
}
|
||||
|
||||
return a[n]()
|
||||
var res = a[n]()
|
||||
|
||||
// cleanup -- restore data that was updated by action...
|
||||
// NOTE: we do not need to worry about partial
|
||||
// updates as they are done in place...
|
||||
Object.keys(a).forEach(function(n){
|
||||
if(n != 'preventClosing'){
|
||||
that[n] = a[n]
|
||||
}
|
||||
})
|
||||
|
||||
return res
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user