mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Document#initialize: use canvas.attributes.resize instead of canvas.getAttribute('resize').
This commit is contained in:
parent
59a776f58d
commit
c8f13b4ace
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue