Allow the clearing of Color#highlight by setting to null.

Closes #688
This commit is contained in:
Jürg Lehni 2015-05-11 23:24:13 +02:00
parent 111d5c8f66
commit dd20df42da

View file

@ -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# */{