Don't try to split integer keys (auto-repeat rows)

This commit is contained in:
Nathan Gray 2012-03-21 21:23:12 +00:00
parent 0a88d60d74
commit 04fe78762f

View File

@ -149,7 +149,11 @@ var et2_arrayMgr = Class.extend({
if (this.splitIds) if (this.splitIds)
{ {
indexes = _key.split('['); if(typeof _key === "string")
{
_key = _key.replace("[","[").replace("]","]");
indexes = _key.split('[');
}
if (indexes.length > 1) if (indexes.length > 1)
{ {
indexes = [indexes.shift(), indexes.join('[')]; indexes = [indexes.shift(), indexes.join('[')];
@ -293,6 +297,11 @@ var et2_arrayMgr = Class.extend({
return et2_evalBool(val); return et2_evalBool(val);
}, },
/**
* ?
*
* @param _row [integer?] Key for into the _root for the desired row
*/
openPerspective: function(_owner, _root, _row) openPerspective: function(_owner, _root, _row)
{ {
// Get the root node // Get the root node