Fixed initializing the indexes of an expanded array after duplicating the array.

This commit is contained in:
josdejong 2012-12-30 15:23:17 +01:00
parent fcc825ec30
commit c5e405542e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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;
}; };