Commit 1602d4b9 authored by Sergey Konovalov's avatar Sergey Konovalov

fix that ed8d2958 break tests

parent 976e4a17
......@@ -2805,7 +2805,7 @@ StyleManager.prototype =
return this.xfs.list.length;
};
StyleCache.prototype._add = function(container, newVal) {
if (undefined === newVal.getIndexNumber()) {
if (newVal && undefined === newVal.getIndexNumber()) {
var hash = newVal.getHash();
var res = container.vals[hash];
if (!res) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment