From dd20df42da0bbe8409d9d5eecc343e5abadf0da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 11 May 2015 23:24:13 +0200 Subject: [PATCH] Allow the clearing of Color#highlight by setting to null. Closes #688 --- src/style/Color.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/style/Color.js b/src/style/Color.js index 90d590c6..b23da7b2 100644 --- a/src/style/Color.js +++ b/src/style/Color.js @@ -279,11 +279,8 @@ var Color = Base.extend(new function() { this._properties = types[type]; this._type = type; } - value = parser.call(this, value); - if (value != null) { - this._components[index] = value; - this._changed(); - } + this._components[index] = parser.call(this, value); + this._changed(); }; }, this); }, /** @lends Color# */{