Avoid error in some cases where there is no readonly array manager yet

This commit is contained in:
Nathan Gray 2015-09-16 15:46:17 +00:00
parent bd21376303
commit bc9a99a2af

View File

@ -641,10 +641,10 @@ var et2_widget = ClassWithAttributes.extend(
// determine which constructor is used
var _nodeName = attributes["type"] = _node.getAttribute("type") ?
_node.getAttribute("type") : _node.nodeName.toLowerCase();
var readonly = attributes["readonly"] =
var readonly = attributes["readonly"] = this.getArrayMgr("readonlys") ?
this.getArrayMgr("readonlys").isReadOnly(
_node.getAttribute("id"), _node.getAttribute("readonly"),
typeof this.readonly !== 'undefined' ? this.readonly : this.options.readonly );
typeof this.readonly !== 'undefined' ? this.readonly : this.options.readonly ) : false;
// Check to see if modifications change type
var modifications = this.getArrayMgr("modifications");