summaryrefslogtreecommitdiff
path: root/js/ui/brush.js
diff options
context:
space:
mode:
authorJulie Lala <jules@okfoc.us>2015-05-18 18:26:54 +0200
committerJulie Lala <jules@okfoc.us>2015-05-18 18:26:54 +0200
commit94ee178000e256dc41438cf4d867e1bced09563e (patch)
treeb83c789d582b00a5b7eeb6f16a8484290ac5b8e3 /js/ui/brush.js
parentb8d2dfbbd1c934a7c09da3a25a4c53ff0c459e92 (diff)
fix brush loading + erasing
Diffstat (limited to 'js/ui/brush.js')
-rw-r--r--js/ui/brush.js6
1 files changed, 3 insertions, 3 deletions
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