From 0d414eaeae13bb520e52ddace0a83c03eb9e7769 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Fri, 20 Jul 2012 12:18:49 -0700 Subject: fixing logical error which was a side-effect of SHA:819348eaf3ff6b4a8c38ecca7c18f6dacac7f03b recently Signed-off-by: Ananya Sen --- js/controllers/clipboard-controller.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js') 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 // Don't do anything if an input or other control is focused except the copy menu button if(document.activeElement.nodeName !== "BODY") { - if(!document.activeElement.getAttribute("data-montage-id") === "menuItemButton") { + if(!(document.activeElement.getAttribute("data-montage-id") === "menuItemButton")) { return; } } @@ -101,7 +101,7 @@ var ClipboardController = exports.ClipboardController = Montage.create(Component // Don't do anything if an input or other control is focused if(document.activeElement.nodeName !== "BODY") { - if(!document.activeElement.getAttribute("data-montage-id") === "menuItemButton") { + if(!(document.activeElement.getAttribute("data-montage-id") === "menuItemButton")) { return; } } @@ -127,7 +127,7 @@ var ClipboardController = exports.ClipboardController = Montage.create(Component // Don't do anything if an input or other control is focused if(document.activeElement.nodeName !== "BODY") { - if(!document.activeElement.getAttribute("data-montage-id") === "menuItemButton") { + if(!(document.activeElement.getAttribute("data-montage-id") === "menuItemButton")) { return; } } -- cgit v1.2.3