minor fixes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-04-02 15:58:55 +03:00
parent cd7cb020b7
commit 4e1b953398
3 changed files with 4 additions and 6 deletions

View File

@ -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()

View File

@ -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){

View File

@ -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){