From 5e31f3a573307ffc17a19613a604a50feb7d0d51 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Fri, 4 May 2012 14:49:47 -0700 Subject: Fixing the color popup Signed-off-by: Valerio Virgillito --- js/panels/color/colorpopup-manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, { // document.addEventListener('mousedown', function (e) { // - if (e._event.srcElement.id === 'stageCanvas' || e._event.srcElement.id === 'mainContainer' || e._event.srcElement.id === 'drawingCanvas') { + if (e._event.srcElement.getAttribute('data-montage-id') === 'stageCanvas' || e._event.srcElement.id === 'mainContainer' || e._event.srcElement.getAttribute('data-montage-id') === 'drawingCanvas') { this.application.ninja.colorController.colorPopupManager.hideColorPopup(); } }.bind(this)); -- cgit v1.2.3