Skip to content

Commit affe0be

Browse files
committed
fixed Linting errors
1 parent 5b8914b commit affe0be

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/dom/dom.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3254,7 +3254,6 @@ p5.Element.prototype.size = function (w, h) {
32543254
let aW = w;
32553255
let aH = h;
32563256
const AUTO = p5.prototype.AUTO;
3257-
32583257
if (aW !== AUTO || aH !== AUTO) {
32593258
if (aW === AUTO) {
32603259
aW = h * this.width / this.height;
@@ -3273,7 +3272,6 @@ p5.Element.prototype.size = function (w, h) {
32733272
this.elt.setAttribute('height', aH * this._pInst._pixelDensity);
32743273
this.elt.style.width = aW + 'px';
32753274
this.elt.style.height = aH + 'px';
3276-
32773275
this._pInst.scale(this._pInst._pixelDensity, this._pInst._pixelDensity);
32783276
for (prop in j) {
32793277
this.elt.getContext('2d')[prop] = j[prop];
@@ -3284,11 +3282,8 @@ p5.Element.prototype.size = function (w, h) {
32843282
this.elt.width = aW;
32853283
this.elt.height = aH;
32863284
}
3287-
3288-
32893285
this.width = aW;
32903286
this.height = aH;
3291-
32923287
if (this._pInst && this._pInst._curElement) {
32933288
// main canvas associated with p5 instance
32943289
if (this._pInst._curElement.elt === this.elt) {

0 commit comments

Comments
 (0)