Skip to content

Commit d703525

Browse files
author
Yusuf Ali
committed
remove hasAttribute check where not needed
1 parent 31b801d commit d703525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/provider/application.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Application extends EventEmitter {
7777
*/
7878
imageRequestResize(event) {
7979
const tgt = event.target;
80-
if (tgt.tagName === 'IMG' && !((tgt.hasAttribute && tgt.hasAttribute('height')) || (tgt.hasAttribute && tgt.hasAttribute('width')))) {
80+
if (tgt.tagName === 'IMG' && !(tgt.hasAttribute('height') || tgt.hasAttribute('width'))) {
8181
this.requestResize();
8282
}
8383
}

0 commit comments

Comments
 (0)