mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Remove non-whitespace change
This commit is contained in:
parent
ac39873693
commit
a518b3fd19
1 changed files with 2 additions and 2 deletions
|
@ -37,9 +37,9 @@ var View = this.View = Base.extend(/** @lends View# */{
|
||||||
var size;
|
var size;
|
||||||
if (canvas && canvas instanceof HTMLCanvasElement) {
|
if (canvas && canvas instanceof HTMLCanvasElement) {
|
||||||
this._canvas = canvas;
|
this._canvas = canvas;
|
||||||
// If the canvas has the data-resize attribute, resize the it to fill the
|
// If the canvas has the resize attribute, resize the it to fill the
|
||||||
// window and resize it again whenever the user resizes the window.
|
// window and resize it again whenever the user resizes the window.
|
||||||
if (canvas.attributes["data-resize"]) {
|
if (canvas.attributes.resize) {
|
||||||
// Subtract canvas' viewport offset from the total size, to
|
// Subtract canvas' viewport offset from the total size, to
|
||||||
// stretch it in
|
// stretch it in
|
||||||
var offset = DomElement.getOffset(canvas, false, true),
|
var offset = DomElement.getOffset(canvas, false, true),
|
||||||
|
|
Loading…
Reference in a new issue