[Context Menu] Update specs

Update specs to reflect refactoring-out of popup elements
performed in the context of adding time conductor, WTD-1515.
This commit is contained in:
Victor Woeltjen
2015-10-02 14:14:34 -07:00
parent fd927d4c03
commit 13095b4135
2 changed files with 45 additions and 36 deletions

View File

@@ -84,8 +84,10 @@ define(
// Remove the context menu
function dismiss() {
popup.dismiss();
popup = undefined;
if (popup) {
popup.dismiss();
popup = undefined;
}
scope.$destroy();
body.off("mousedown", dismiss);
dismissExistingMenu = undefined;