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

Commit 856f716

Browse files
committed
update size only if truthy
1 parent e24f587 commit 856f716

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core-icon.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@
102102
},
103103

104104
updateIcon: function() {
105-
this.style.width = this.style.height = this.size ? this.size + 'px' : '';
105+
if (this.size) {
106+
this.style.width = this.style.height = this.size + 'px';
107+
}
106108
if (this.icon) {
107109
var parts = String(this.icon).split(':');
108110
var icon = parts.pop();

0 commit comments

Comments
 (0)