Skip to content
This repository was archived by the owner on Feb 9, 2018. It is now read-only.

Commit f979953

Browse files
committed
Get rid of extras
1 parent edcee12 commit f979953

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/css-image-value.js

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,13 @@
4545
}
4646

4747
this._image = image;
48-
//if (image.complete) {
49-
// onLoad.call(this);
50-
//} else {
51-
this.state = "unloaded";
52-
this.intrinsicWidth = null;
53-
this.intrinsicHeight = null;
54-
this.intrinsicRatio = null;
55-
this._image.onload = onLoad.bind(this);
56-
this._image.onerror = onError.bind(this);
57-
this._image.onprogess = onProgress.bind(this);
58-
//}
48+
this.state = "unloaded";
49+
this.intrinsicWidth = null;
50+
this.intrinsicHeight = null;
51+
this.intrinsicRatio = null;
52+
this._image.onload = onLoad.bind(this);
53+
this._image.onerror = onError.bind(this);
54+
this._image.onprogess = onProgress.bind(this);
5955
}
6056
CSSImageValue.prototype = Object.create(scope.CSSImageValue.prototype);
6157

0 commit comments

Comments
 (0)