BUG-14843 Process Tracker - Menu Sticks

I added the menu item in the remove event when the windows is clsed.
This commit is contained in:
jennylee
2014-05-09 11:31:11 -04:00
parent 00a1ddedb6
commit e19288e0c3
2 changed files with 3 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ var stagesmap=function(){
{image:"/images/add.png",text:G_STRINGS.ID_PROCESSMAP_ADD_STAGE,launch:this.addStage.extend(this)}
]
});
menu_right = this.menu;
this.observers.menu.register(this.parent.closure({instance:this.menu,method:this.menu.remove}),this.menu);
}
this.data.render.title();
@@ -318,6 +319,7 @@ var stagesmap=function(){
},args:index})}
]
});
menu_right = this.menu;
this.observers.menu.register(menu.remove,menu);
}
this.panels.editor.elements.content.appendChild(a);