aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAnanya Sen2012-07-20 12:18:49 -0700
committerAnanya Sen2012-07-20 12:18:49 -0700
commit0d414eaeae13bb520e52ddace0a83c03eb9e7769 (patch)
treeef336b3907e7fd22bbd1974be55918a46b519094 /js
parent0b6e845b4afe8cf3571351bd7b2aa872fab61c71 (diff)
downloadninja-0d414eaeae13bb520e52ddace0a83c03eb9e7769.tar.gz
fixing logical error which was a side-effect of SHA:819348eaf3ff6b4a8c38ecca7c18f6dacac7f03b recently
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js')
-rw-r--r--js/controllers/clipboard-controller.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/controllers/clipboard-controller.js b/js/controllers/clipboard-controller.js
index afc94c8c..3eba1bec 100644
--- a/js/controllers/clipboard-controller.js
+++ b/js/controllers/clipboard-controller.js
@@ -82,7 +82,7 @@ var ClipboardController = exports.ClipboardController = Montage.create(Component
82 82
83 // Don't do anything if an input or other control is focused except the copy menu button 83 // Don't do anything if an input or other control is focused except the copy menu button
84 if(document.activeElement.nodeName !== "BODY") { 84 if(document.activeElement.nodeName !== "BODY") {
85 if(!document.activeElement.getAttribute("data-montage-id") === "menuItemButton") { 85 if(!(document.activeElement.getAttribute("data-montage-id") === "menuItemButton")) {
86 return; 86 return;
87 } 87 }
88 } 88 }
@@ -101,7 +101,7 @@ var ClipboardController = exports.ClipboardController = Montage.create(Component
101 101
102 // Don't do anything if an input or other control is focused 102 // Don't do anything if an input or other control is focused
103 if(document.activeElement.nodeName !== "BODY") { 103 if(document.activeElement.nodeName !== "BODY") {
104 if(!document.activeElement.getAttribute("data-montage-id") === "menuItemButton") { 104 if(!(document.activeElement.getAttribute("data-montage-id") === "menuItemButton")) {
105 return; 105 return;
106 } 106 }
107 } 107 }
@@ -127,7 +127,7 @@ var ClipboardController = exports.ClipboardController = Montage.create(Component
127 127
128 // Don't do anything if an input or other control is focused 128 // Don't do anything if an input or other control is focused
129 if(document.activeElement.nodeName !== "BODY") { 129 if(document.activeElement.nodeName !== "BODY") {
130 if(!document.activeElement.getAttribute("data-montage-id") === "menuItemButton") { 130 if(!(document.activeElement.getAttribute("data-montage-id") === "menuItemButton")) {
131 return; 131 return;
132 } 132 }
133 } 133 }