Skip to content

Instantly share code, notes, and snippets.

@no6v
Created February 10, 2011 08:34
Show Gist options
  • Save no6v/820142 to your computer and use it in GitHub Desktop.
Save no6v/820142 to your computer and use it in GitHub Desktop.
diff --git a/public/javascripts/draw.js b/public/javascripts/draw.js
index 747329e..fc2dc53 100644
--- a/public/javascripts/draw.js
+++ b/public/javascripts/draw.js
@@ -66,7 +66,7 @@ function draw (e) {
function set_pen_color () {
var c = $(this).attr("id");
if (c=='eraser') {
- pen_color[0] = canvas_color;
+ pen_colors[0] = canvas_color;
} else {
pen_colors.unshift(c);
$(".recent").each(function(i){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment