mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
minor fixes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
cd7cb020b7
commit
4e1b953398
@ -355,6 +355,7 @@ var DataPrototype = {
|
||||
// Clear elements from data...
|
||||
//
|
||||
// Clear all data:
|
||||
// .clear()
|
||||
// .clear('*')
|
||||
// .clear('all')
|
||||
// -> data
|
||||
@ -390,14 +391,10 @@ var DataPrototype = {
|
||||
// other than null?
|
||||
// XXX should this return this or the removed gids???
|
||||
clear: function(gids, deep, clear_empty){
|
||||
// defaults...
|
||||
gids = gids || 'all'
|
||||
deep = deep == null ? true : false
|
||||
clear_empty = clear_empty == null ? true : false
|
||||
|
||||
if(gids == null){
|
||||
return this
|
||||
}
|
||||
|
||||
// clear all data...
|
||||
if(gids == '*' || gids == 'all'){
|
||||
this._reset()
|
||||
|
||||
@ -758,6 +758,7 @@ var FileSystemWriterActions = actions.Actions({
|
||||
// ...both denodeify(..)'ed
|
||||
// XXX export current state as a full loadable index
|
||||
// XXX might be interesting to unify this and .exportView(..)
|
||||
// XXX should this return a promise??? ...a clean promise???
|
||||
// XXX local collections???
|
||||
exportCollection: ['File/Export as collection',
|
||||
function(path, logger){
|
||||
|
||||
@ -263,7 +263,7 @@ module.ViewerActions = actions.Actions({
|
||||
this.ribbons.updateImage(gids)
|
||||
}],
|
||||
clear: [
|
||||
function(){ this.ribbon && this.ribbons.clear() }],
|
||||
function(){ this.ribbons && this.ribbons.clear() }],
|
||||
clone: [function(full){
|
||||
return function(res){
|
||||
if(this.ribbons){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user