BUG-14843 Process Tracker - Menu Sticks

I added the menu item in the remove event when the windows is closed.
This commit is contained in:
jennylee
2014-05-12 10:55:47 -04:00
parent d03a58fb0c
commit 4dfb08c26b
2 changed files with 4 additions and 3 deletions

View File

@@ -22,7 +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;
menu_add = this.menu;
this.observers.menu.register(this.parent.closure({instance:this.menu,method:this.menu.remove}),this.menu);
}
this.data.render.title();
@@ -319,7 +319,8 @@ var stagesmap=function(){
},args:index})}
]
});
menu_right = this.menu;
menu_edit = menu;
//this.observers.menu.register(this.parent.closure({instance:menu,method:menu.remove}),menu);
this.observers.menu.register(menu.remove,menu);
}
this.panels.editor.elements.content.appendChild(a);