aboutsummaryrefslogtreecommitdiff
path: root/js/components/menu/menu-entry.reel/menu-entry.js
diff options
context:
space:
mode:
authorAnanya Sen2012-06-15 15:20:27 -0700
committerAnanya Sen2012-06-15 15:20:27 -0700
commitd7123dd2f0ec035648ecf7bdec0cb66bdea72e04 (patch)
tree55c0f26ed225ba57486346645e67d1261d908cbd /js/components/menu/menu-entry.reel/menu-entry.js
parent8e5cfac34edc9772ba89e0206890c23afa0a6fcc (diff)
downloadninja-d7123dd2f0ec035648ecf7bdec0cb66bdea72e04.tar.gz
Fixed - IKNINJA-1313 - File menu drop down should close when New File dialog is opened
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/components/menu/menu-entry.reel/menu-entry.js')
-rwxr-xr-xjs/components/menu/menu-entry.reel/menu-entry.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/components/menu/menu-entry.reel/menu-entry.js b/js/components/menu/menu-entry.reel/menu-entry.js
index 57e6ec87..1cea19b3 100755
--- a/js/components/menu/menu-entry.reel/menu-entry.js
+++ b/js/components/menu/menu-entry.reel/menu-entry.js
@@ -47,7 +47,7 @@ exports.MenuEntry = Montage.create(Component, {
47 } 47 }
48 }, 48 },
49 49
50 handleClick: { 50 captureMousedown: {
51 value: function(event) { 51 value: function(event) {
52 this._menu.toggleActivation(this); 52 this._menu.toggleActivation(this);
53 } 53 }
@@ -66,7 +66,7 @@ exports.MenuEntry = Montage.create(Component, {
66 66
67 this.topHeaderText.innerHTML = this.data.header; 67 this.topHeaderText.innerHTML = this.data.header;
68 68
69 this.element.addEventListener("click", this, false); 69 this.element.addEventListener("mousedown", this, true);
70 70
71 Object.defineBinding(this, "menuIsActive", { 71 Object.defineBinding(this, "menuIsActive", {
72 boundObject: this._menu, 72 boundObject: this._menu,