If legacy option is '', it's not set - use default

This commit is contained in:
Nathan Gray 2012-03-26 23:28:35 +00:00
parent ae6809e91e
commit f4fe3951c6

View File

@ -486,6 +486,10 @@ var et2_widget = Class.extend({
if(typeof _target[_proto.legacyOptions[j]] === "undefined")
{
attrValue = splitted[j];
// Blank = not set
if(attrValue == "") continue;
var attr = _proto.attributes[_proto.legacyOptions[j]];
// If the attribute is marked as boolean, parse the