From: Robert Konigsberg Date: Mon, 16 Jan 2012 22:11:14 +0000 (-0500) Subject: Fix drawing.js bug X-Git-Tag: v1.0.0~320^2~11 X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=7e464a9190b90caaed5611ada2148d3328183b16;p=dygraphs.git Fix drawing.js bug --- diff --git a/gallery/drawing.js b/gallery/drawing.js index 63d7fdd..fb5e8de 100644 --- a/gallery/drawing.js +++ b/gallery/drawing.js @@ -20,7 +20,7 @@ Gallery.register( zoom.onclick = function() { change_tool(zoom) }; var pencil = document.getElementById('tool_pencil'); pencil.onclick = function() { change_tool(pencil) }; - var eraser = document.getElementById('tool_pencil'); + var eraser = document.getElementById('tool_eraser'); eraser.onclick = function() { change_tool(eraser) }; var start_date = new Date("2002/12/29").getTime();