From cb5a8aa2fc5ca273126eb18f1224b46eb8de08ed Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Tue, 8 Feb 2011 13:15:27 +0100 Subject: [PATCH] Rename Doc#draw to Doc#redraw --- src/Doc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Doc.js b/src/Doc.js index f61681eb..9e4a34b8 100644 --- a/src/Doc.js +++ b/src/Doc.js @@ -5,7 +5,7 @@ Doc = Base.extend({ this.size = new Size(canvas.offsetWidth, canvas.offsetHeight); this.children = []; }, - draw: function() { + redraw: function() { this.ctx.clearRect(0, 0, this.size.width, this.size.height); for(var i = 0, l = this.children.length; i < l; i++) { this.children[i].draw(this.ctx);