From 94ee178000e256dc41438cf4d867e1bced09563e Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Mon, 18 May 2015 18:26:54 +0200 Subject: fix brush loading + erasing --- js/ui/brush.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/ui/brush.js') diff --git a/js/ui/brush.js b/js/ui/brush.js index 53c0e46..4b2db3c 100644 --- a/js/ui/brush.js +++ b/js/ui/brush.js @@ -29,7 +29,7 @@ var brush = (function(){ dragging = true erasing = (e.which == "3" || e.ctrlKey) if (erasing) { - lex.erase() + lex.clear() } else { fillColor = brush.bg @@ -44,7 +44,7 @@ var brush = (function(){ } erasing = (e.which == "3" || e.ctrlKey) if (erasing) { - lex.erase() + lex.clear() } else { lex.fill(brush) @@ -69,7 +69,7 @@ var brush = (function(){ this.expand(-i) } - brush.assign = function(lex){ + brush.load = function(lex){ brush.char = lex.char brush.fg = lex.fg brush.bg = lex.bg -- cgit v1.2.3-70-g09d2