mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-16 16:21:40 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
be8d582be5
commit
22ffd3743c
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user