Avoid errors if widget has a modification on a sub-widget named 'type'

This commit is contained in:
nathangray 2019-03-20 13:56:15 -06:00
parent 6aea0844ba
commit d2c2dde383

View File

@ -700,7 +700,7 @@ var et2_widget = (function(){ "use strict"; return ClassWithAttributes.extend(
var entry = modifications.getRoot().getEntry(_node.getAttribute("id"));
}
}
if(entry && entry.type)
if(entry && entry.type && typeof entry.type === 'string')
{
_nodeName = attributes["type"] = entry.type;
}