|
7 | 7 | * Released under the MIT license |
8 | 8 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
9 | 9 | * |
10 | | - * @version 2.10.1 |
11 | | - * @date 2015-06-27T22:07 |
| 10 | + * @version 2.10.2 |
| 11 | + * @date 2015-07-02T08:11 |
12 | 12 | */ |
13 | 13 |
|
14 | 14 | /** Core Fancytree module. |
@@ -1494,7 +1494,7 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{ |
1494 | 1494 | // If a topNode was passed, make sure that it is never scrolled |
1495 | 1495 | // outside the upper border |
1496 | 1496 | if(topNode){ |
1497 | | - _assert(topNode.isRoot() || $(topNode.span).is(":visible"), "topNode must be visible"); |
| 1497 | + _assert(topNode.isRootNode() || $(topNode.span).is(":visible"), "topNode must be visible"); |
1498 | 1498 | if( topNodeY < newScrollTop ){ |
1499 | 1499 | newScrollTop = topNodeY - topOfs; |
1500 | 1500 | // this.debug(" scrollIntoView(), TOP newScrollTop=", newScrollTop); |
@@ -2725,7 +2725,7 @@ $.extend(Fancytree.prototype, |
2725 | 2725 | // We got {foo: 'abc', children: [...]} |
2726 | 2726 | // Copy extra properties to tree.data.foo |
2727 | 2727 | _assert($.isArray(children.children), "source must contain (or be) an array of children"); |
2728 | | - _assert(node.isRoot(), "source may only be an object for root nodes"); |
| 2728 | + _assert(node.isRootNode(), "source may only be an object for root nodes"); |
2729 | 2729 | metaData = children; |
2730 | 2730 | children = children.children; |
2731 | 2731 | delete metaData.children; |
@@ -2793,7 +2793,7 @@ $.extend(Fancytree.prototype, |
2793 | 2793 | // FT.debug("nodeRemoveChildMarkup()", node.toString()); |
2794 | 2794 | // TODO: Unlink attr.ftnode to support GC |
2795 | 2795 | if(node.ul){ |
2796 | | - if( node.isRoot() ) { |
| 2796 | + if( node.isRootNode() ) { |
2797 | 2797 | $(node.ul).empty(); |
2798 | 2798 | } else { |
2799 | 2799 | $(node.ul).remove(); |
@@ -2843,7 +2843,9 @@ $.extend(Fancytree.prototype, |
2843 | 2843 | } else{ |
2844 | 2844 | node.children = null; |
2845 | 2845 | } |
2846 | | - node.expanded = false; // #449 |
| 2846 | + if( !node.isRootNode() ) { |
| 2847 | + node.expanded = false; // #449, #459 |
| 2848 | + } |
2847 | 2849 | this.nodeRenderStatus(ctx); |
2848 | 2850 | }, |
2849 | 2851 | /**Remove HTML markup for ctx.node and all its descendents. |
@@ -4077,7 +4079,7 @@ $.extend($.ui.fancytree, |
4077 | 4079 | /** @lends Fancytree_Static# */ |
4078 | 4080 | { |
4079 | 4081 | /** @type {string} */ |
4080 | | - version: "2.10.1", // Set to semver by 'grunt release' |
| 4082 | + version: "2.10.2", // Set to semver by 'grunt release' |
4081 | 4083 | /** @type {string} */ |
4082 | 4084 | buildType: "production", // Set to 'production' by 'grunt build' |
4083 | 4085 | /** @type {int} */ |
@@ -4439,8 +4441,8 @@ $.extend($.ui.fancytree, |
4439 | 4441 | * Released under the MIT license |
4440 | 4442 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
4441 | 4443 | * |
4442 | | - * @version 2.10.1 |
4443 | | - * @date 2015-06-27T22:07 |
| 4444 | + * @version 2.10.2 |
| 4445 | + * @date 2015-07-02T08:11 |
4444 | 4446 | */ |
4445 | 4447 |
|
4446 | 4448 | // To keep the global namespace clean, we wrap everything in a closure |
@@ -4615,8 +4617,8 @@ $.ui.fancytree.registerExtension({ |
4615 | 4617 | * Released under the MIT license |
4616 | 4618 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
4617 | 4619 | * |
4618 | | - * @version 2.10.1 |
4619 | | - * @date 2015-06-27T22:07 |
| 4620 | + * @version 2.10.2 |
| 4621 | + * @date 2015-07-02T08:11 |
4620 | 4622 | */ |
4621 | 4623 |
|
4622 | 4624 | ;(function($, window, document, undefined) { |
@@ -5067,8 +5069,8 @@ $.ui.fancytree.registerExtension({ |
5067 | 5069 | * Released under the MIT license |
5068 | 5070 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
5069 | 5071 | * |
5070 | | - * @version 2.10.1 |
5071 | | - * @date 2015-06-27T22:07 |
| 5072 | + * @version 2.10.2 |
| 5073 | + * @date 2015-07-02T08:11 |
5072 | 5074 | */ |
5073 | 5075 |
|
5074 | 5076 | ;(function($, window, document, undefined) { |
@@ -5624,8 +5626,8 @@ $.ui.fancytree.registerExtension({ |
5624 | 5626 | * Released under the MIT license |
5625 | 5627 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
5626 | 5628 | * |
5627 | | - * @version 2.10.1 |
5628 | | - * @date 2015-06-27T22:07 |
| 5629 | + * @version 2.10.2 |
| 5630 | + * @date 2015-07-02T08:11 |
5629 | 5631 | */ |
5630 | 5632 |
|
5631 | 5633 | ;(function($, window, document, undefined) { |
@@ -5932,8 +5934,8 @@ $.ui.fancytree.registerExtension({ |
5932 | 5934 | * Released under the MIT license |
5933 | 5935 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
5934 | 5936 | * |
5935 | | - * @version 2.10.1 |
5936 | | - * @date 2015-06-27T22:07 |
| 5937 | + * @version 2.10.2 |
| 5938 | + * @date 2015-07-02T08:11 |
5937 | 5939 | */ |
5938 | 5940 |
|
5939 | 5941 | ;(function($, window, document, undefined) { |
@@ -6125,8 +6127,8 @@ $.ui.fancytree.registerExtension({ |
6125 | 6127 | * Released under the MIT license |
6126 | 6128 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
6127 | 6129 | * |
6128 | | - * @version 2.10.1 |
6129 | | - * @date 2015-06-27T22:07 |
| 6130 | + * @version 2.10.2 |
| 6131 | + * @date 2015-07-02T08:11 |
6130 | 6132 | */ |
6131 | 6133 |
|
6132 | 6134 | ;(function($, window, document, undefined) { |
@@ -6258,8 +6260,8 @@ $.ui.fancytree.registerExtension({ |
6258 | 6260 | * Released under the MIT license |
6259 | 6261 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
6260 | 6262 | * |
6261 | | - * @version 2.10.1 |
6262 | | - * @date 2015-06-27T22:07 |
| 6263 | + * @version 2.10.2 |
| 6264 | + * @date 2015-07-02T08:11 |
6263 | 6265 | */ |
6264 | 6266 |
|
6265 | 6267 | ;(function($, window, document, undefined) { |
@@ -6460,8 +6462,8 @@ $.ui.fancytree.registerExtension({ |
6460 | 6462 | * Released under the MIT license |
6461 | 6463 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
6462 | 6464 | * |
6463 | | - * @version 2.10.1 |
6464 | | - * @date 2015-06-27T22:07 |
| 6465 | + * @version 2.10.2 |
| 6466 | + * @date 2015-07-02T08:11 |
6465 | 6467 | */ |
6466 | 6468 |
|
6467 | 6469 | ;(function($, window, document, undefined) { |
@@ -6835,8 +6837,8 @@ $.ui.fancytree.registerExtension({ |
6835 | 6837 | * Released under the MIT license |
6836 | 6838 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
6837 | 6839 | * |
6838 | | - * @version 2.10.1 |
6839 | | - * @date 2015-06-27T22:07 |
| 6840 | + * @version 2.10.2 |
| 6841 | + * @date 2015-07-02T08:11 |
6840 | 6842 | */ |
6841 | 6843 |
|
6842 | 6844 | ;(function($, window, document, undefined) { |
@@ -7200,8 +7202,8 @@ $.ui.fancytree.registerExtension({ |
7200 | 7202 | * Released under the MIT license |
7201 | 7203 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
7202 | 7204 | * |
7203 | | - * @version 2.10.1 |
7204 | | - * @date 2015-06-27T22:07 |
| 7205 | + * @version 2.10.2 |
| 7206 | + * @date 2015-07-02T08:11 |
7205 | 7207 | */ |
7206 | 7208 |
|
7207 | 7209 | ;(function($, window, document, undefined) { |
@@ -7276,8 +7278,8 @@ $.ui.fancytree.registerExtension({ |
7276 | 7278 | * Released under the MIT license |
7277 | 7279 | * https://github.com/mar10/fancytree/wiki/LicenseInfo |
7278 | 7280 | * |
7279 | | - * @version 2.10.1 |
7280 | | - * @date 2015-06-27T22:07 |
| 7281 | + * @version 2.10.2 |
| 7282 | + * @date 2015-07-02T08:11 |
7281 | 7283 | */ |
7282 | 7284 |
|
7283 | 7285 | ;(function($, window, document, undefined) { |
|
0 commit comments