cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-11-22 23:41:38 +03:00
parent be8d582be5
commit 22ffd3743c

View File

@ -764,6 +764,7 @@ var RibbonsPrototype = {
// .getRibbonSet(true) // .getRibbonSet(true)
// -> ribbon-set // -> ribbon-set
// //
// XXX revise...
getRibbonSet: function(create){ getRibbonSet: function(create){
// ribbon set... // ribbon set...
var ribbon_set = this.viewer.find('.ribbon-set') var ribbon_set = this.viewer.find('.ribbon-set')
@ -1860,14 +1861,9 @@ var RibbonsPrototype = {
// NOTE: another way to remove a ribbon or an image just to use // NOTE: another way to remove a ribbon or an image just to use
// .getRibbon(..).remove() and .getImage(...).remove() respectivly. // .getRibbon(..).remove() and .getImage(...).remove() respectivly.
clear: function(gids){ clear: function(gids){
if(gids == 'full'){
this.getRibbonSet().remove()
// clear all... // clear all...
} else if(gids == null || gids == '*'){ if(gids == 'full' || gids == '*' || gids == null){
this.preventTransitions() this.getRibbonSet().remove()
this.dom.setOffset(this.getRibbonSet(), 0, 0).children().detach()
this.restoreTransitions()
// clear one or more gids... // clear one or more gids...
} else { } else {