aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-04 14:49:47 -0700
committerValerio Virgillito2012-05-04 14:49:47 -0700
commit5e31f3a573307ffc17a19613a604a50feb7d0d51 (patch)
treeeec084e839310c7b85e78a9fd2b76fa62d0dd0a8
parent26248a5fd11954b670c36cde25a13af990774c8c (diff)
downloadninja-5e31f3a573307ffc17a19613a604a50feb7d0d51.tar.gz
Fixing the color popup
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
-rwxr-xr-xjs/panels/color/colorpopup-manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/panels/color/colorpopup-manager.js b/js/panels/color/colorpopup-manager.js
index d6d94807..529ec1c8 100755
--- a/js/panels/color/colorpopup-manager.js
+++ b/js/panels/color/colorpopup-manager.js
@@ -70,7 +70,7 @@ exports.ColorPopupManager = Montage.create(Component, {
70 // 70 //
71 document.addEventListener('mousedown', function (e) { 71 document.addEventListener('mousedown', function (e) {
72 // 72 //
73 if (e._event.srcElement.id === 'stageCanvas' || e._event.srcElement.id === 'mainContainer' || e._event.srcElement.id === 'drawingCanvas') { 73 if (e._event.srcElement.getAttribute('data-montage-id') === 'stageCanvas' || e._event.srcElement.id === 'mainContainer' || e._event.srcElement.getAttribute('data-montage-id') === 'drawingCanvas') {
74 this.application.ninja.colorController.colorPopupManager.hideColorPopup(); 74 this.application.ninja.colorController.colorPopupManager.hideColorPopup();
75 } 75 }
76 }.bind(this)); 76 }.bind(this));