Skip to content

Commit

Permalink
No longer break acid3 test, fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
kepi committed Jan 24, 2010
1 parent 2d11990 commit 77e4ae5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions edropper.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ function activateDropper() {

dropper_activated = true;

// Status rectangle with actual color under cursor
$("body").append('<div id="color-tooltip" style="z-index: 1000; width:10px; height: 10px; border: 1px solid #000; display:none; font-size: 15px;"> </div>');

// set some events
document.addEventListener("mousemove", mouseMove, false);
document.addEventListener("click", mouseClick, false);
Expand Down Expand Up @@ -115,6 +118,8 @@ function deactivateDropper() {
if(!dropper_activated)
return;

$("color-tip").remove();

dropper_activated = false;
screenshotTaken = false;
screenshoting = false;
Expand Down Expand Up @@ -298,6 +303,3 @@ function updateCanvas() {
}
});
}

// Status rectangle with actual color under cursor
$('body').prepend("<div id='color-tooltip' style='z-index: 1000; width:10px; height: 10px; border: 1px solid #000; display:none; font-size: 15px;'> </div>");

0 comments on commit 77e4ae5

Please sign in to comment.