Fixed initializing the indexes of an expanded array after duplicating the array.
This commit is contained in:
parent
fcc825ec30
commit
c5e405542e
|
@ -12,7 +12,7 @@
|
||||||
<button onclick="setJSON();">Set JSON</button>
|
<button onclick="setJSON();">Set JSON</button>
|
||||||
<button onclick="getJSON();">Get JSON</button>
|
<button onclick="getJSON();">Get JSON</button>
|
||||||
</p>
|
</p>
|
||||||
<div id="jsoneditor" style="width: 500px; height: 200px;"></div>
|
<div id="jsoneditor" style="width: 500px; height: 400px;"></div>
|
||||||
|
|
||||||
<script type="text/javascript" >
|
<script type="text/javascript" >
|
||||||
// create the editor. Optionally, parameters json and options can be
|
// create the editor. Optionally, parameters json and options can be
|
||||||
|
|
|
@ -1746,7 +1746,7 @@ JSONEditor.Node.prototype.getDom = function() {
|
||||||
dom.tree = this._createDomTree();
|
dom.tree = this._createDomTree();
|
||||||
tdField.appendChild(dom.tree);
|
tdField.appendChild(dom.tree);
|
||||||
|
|
||||||
this.updateDom(); // TODO: recurse here?
|
this.updateDom({'updateIndexes': true});
|
||||||
|
|
||||||
return dom.tr;
|
return dom.tr;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue