Document#initialize: use canvas.attributes.resize instead of canvas.getAttribute('resize').

This commit is contained in:
Jonathan Puckey 2011-05-05 20:18:22 +01:00
parent 59a776f58d
commit c8f13b4ace

View file

@ -20,7 +20,7 @@ var Document = this.Document = Base.extend({
initialize: function(canvas) {
if (canvas && canvas instanceof HTMLCanvasElement) {
this.canvas = canvas;
if (canvas.getAttribute('resize')) {
if (canvas.attributes.resize) {
// If the canvas has a fullscreen attribute,
// resize the canvas to fill the window and resize it again
// whenever the user resizes the window.