Thomas Bruederli
2015-02-24 db6663b936310cfc51f9ddd39ab7c338f5527256
Update internal reference to treelist node contents after insert. Fixes some strange behavior in FF 3.6
1 files modified
6 ■■■■■ changed files
program/js/treelist.js 6 ●●●●● patch | view | raw | blame | history
program/js/treelist.js
@@ -366,6 +366,12 @@
    indexbyid[node.id] = node;
    // set new reference to node.html after insert
    // will otherwise vanish in Firefox 3.6
    if (typeof node.html == 'object') {
        indexbyid[node.id].html = id2dom(node.id, true).children();
    }
    if (sort) {
      resort_node(li, typeof sort == 'string' ? '[class~="' + sort + '"]' : '');
    }