Skip to content

Commit

Permalink
hide old child before showing a new one
Browse files Browse the repository at this point in the history
  • Loading branch information
dound committed Dec 7, 2008
1 parent 8ae8c28 commit e8c0c87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jtoolbar.js
Expand Up @@ -847,6 +847,12 @@ var JTB = function() {
/* remove the child from any old parent */
childToolbar.hideFromParentToolbar();

/* remove any other child this toolbar was showing */
if(this.vis_tb_child !== null) {
this.vis_tb_child.hideFromParentToolbar();
this.vis_tb_child = null;
}

/* tell the child toolbar it belongs to us now */
childToolbar.tb_parent = this;

Expand Down

0 comments on commit e8c0c87

Please sign in to comment.