Partially revert r48812, seems it didn't help entry widgets but it did cause problems with preferences

This commit is contained in:
Nathan Gray 2014-10-07 21:16:18 +00:00
parent 3af8b4806b
commit e674c5aa5b

View File

@ -666,8 +666,7 @@ var et2_widget = ClassWithAttributes.extend(
} }
if(entry && entry.type) if(entry && entry.type)
{ {
_nodeName = entry.type; _nodeName = attributes["type"] = entry.type;
_node.setAttribute("type", entry.type);
} }
entry = null; entry = null;
} }
@ -676,8 +675,7 @@ var et2_widget = ClassWithAttributes.extend(
// we need to expand it now as it defines the constructor and by that attributes parsed via parseXMLAttrs! // we need to expand it now as it defines the constructor and by that attributes parsed via parseXMLAttrs!
if (_nodeName.charAt(0) == '@' || _nodeName.indexOf('$') >= 0) if (_nodeName.charAt(0) == '@' || _nodeName.indexOf('$') >= 0)
{ {
_nodeName = this.getArrayMgr('content').expandName(_nodeName); _nodeName = attributes["type"] = this.getArrayMgr('content').expandName(_nodeName);
_node.setAttribute("type", _nodeName);
} }
// Get the constructor - if the widget is readonly, use the special "_ro" // Get the constructor - if the widget is readonly, use the special "_ro"