Eke out another li'l bug.
Chris Pressey
9 years ago
14 | 14 | this.init = function(cfg) { |
15 | 15 | this.pf = cfg.playfield; |
16 | 16 | this.canvas = cfg.canvas; |
17 | this.ctx = canvas.getContext('2d'); | |
17 | this.ctx = this.canvas.getContext('2d'); | |
18 | 18 | this.cursors = cfg.cursors || []; |
19 | 19 | this.fixedPosition = !!cfg.fixedPosition; |
20 | 20 | this.fixedSizeCanvas = !!cfg.fixedSizeCanvas; |