Rename Doc#draw to Doc#redraw

This commit is contained in:
Jonathan Puckey 2011-02-08 13:15:27 +01:00
parent cbb10922c5
commit cb5a8aa2fc

View file

@ -5,7 +5,7 @@ Doc = Base.extend({
this.size = new Size(canvas.offsetWidth, canvas.offsetHeight); this.size = new Size(canvas.offsetWidth, canvas.offsetHeight);
this.children = []; this.children = [];
}, },
draw: function() { redraw: function() {
this.ctx.clearRect(0, 0, this.size.width, this.size.height); this.ctx.clearRect(0, 0, this.size.width, this.size.height);
for(var i = 0, l = this.children.length; i < l; i++) { for(var i = 0, l = this.children.length; i < l; i++) {
this.children[i].draw(this.ctx); this.children[i].draw(this.ctx);