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

Commit

Permalink
update size only if truthy
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jun 17, 2014
1 parent e24f587 commit 856f716
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core-icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@
},

updateIcon: function() {
this.style.width = this.style.height = this.size ? this.size + 'px' : '';
if (this.size) {
this.style.width = this.style.height = this.size + 'px';
}
if (this.icon) {
var parts = String(this.icon).split(':');
var icon = parts.pop();
Expand Down

0 comments on commit 856f716

Please sign in to comment.