Use getEntry() as fallback for text roots

This commit is contained in:
Nathan Gray 2011-10-17 21:01:04 +00:00
parent b704db187f
commit 428d201179

View File

@ -281,6 +281,7 @@ var et2_arrayMgr = Class.extend({
// Get the root node
var root = typeof _root == "string" ? this.data[_root] :
(_root == null ? this.data : _root);
if(typeof root == "undefined" && typeof _root == "string") root = this.getEntry(_root);
// Create a new content array manager with the given root
var mgr = new et2_arrayMgr(root, this);