From 856f7168f2a8a5f94423329e04231356de4df673 Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Tue, 17 Jun 2014 09:35:47 -0700 Subject: [PATCH] update size only if truthy --- core-icon.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core-icon.html b/core-icon.html index 2a1926e..95abbf3 100644 --- a/core-icon.html +++ b/core-icon.html @@ -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();