mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
some cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
54c37a769a
commit
5704e829b8
@ -1014,7 +1014,6 @@ actions.Actions({
|
||||
}],
|
||||
clear: [
|
||||
function(){ this.ribbons.clear() }],
|
||||
|
||||
clone: [function(full){
|
||||
return function(res){
|
||||
if(this.ribbons){
|
||||
@ -4061,6 +4060,9 @@ module.FileSystemWriter = ImageGridFeatures.Feature({
|
||||
},
|
||||
|
||||
// monitor changes...
|
||||
// XXX should we use .load(..) to trigger changes instead of .loadURLs(..)???
|
||||
// ...the motivation is that .crop(..) may also trigger loads...
|
||||
// ....needs more thought...
|
||||
handlers: [
|
||||
// clear changes...
|
||||
// XXX currently if no args are passed then nothing is
|
||||
@ -4083,8 +4085,9 @@ module.FileSystemWriter = ImageGridFeatures.Feature({
|
||||
// everything changed...
|
||||
[[
|
||||
'loadURLs',
|
||||
'clear',
|
||||
].join(' '),
|
||||
function(_, target){
|
||||
function(){
|
||||
// NOTE: this is better than delete as it will shadow
|
||||
// the parent's changes in case we got cloned from
|
||||
// a live instance...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user