summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/ui/controls.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/ui/controls.js b/js/ui/controls.js
index 84a9d9b..485046e 100644
--- a/js/ui/controls.js
+++ b/js/ui/controls.js
@@ -69,9 +69,9 @@ var controls = (function(){
controls.clear = new BlurredTool (clear_el)
controls.clear.use = function(){
- if (confirm("really delete this colorcode?")) {
- canvas.erase()
- }
+ undo.new()
+ undo.save_rect(0, 0, canvas.w, canvas.h)
+ canvas.erase()
}
controls.webcam = new FileTool (webcam_el)