From 7bc6da5401f35afa2b3e577d558250cc49357a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rg=20Lehni?= Date: Sun, 28 Dec 2014 18:03:41 +0100 Subject: [PATCH] Do not create entries in Style#_values for default values. --- src/style/Style.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/style/Style.js b/src/style/Style.js index 3b0b4086..0ebe5bff 100644 --- a/src/style/Style.js +++ b/src/style/Style.js @@ -152,7 +152,7 @@ var Style = Base.extend(new function() { children[i]._style[set](value); } else { var old = this._values[key]; - if (old != value) { + if (old !== value) { if (isColor) { if (old) old._owner = undefined; @@ -190,7 +190,6 @@ var Style = Base.extend(new function() { value = this._defaults[key]; if (value && value.clone) value = value.clone(); - this._values[key] = value; } else { var ctor = isColor ? Color : isPoint ? Point : null; if (ctor && !(value && value.constructor === ctor)) {