Skip to content

Commit

Permalink
Bumping version to 2.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mar10 committed Jul 2, 2015
1 parent ea7d364 commit a5d57ff
Show file tree
Hide file tree
Showing 23 changed files with 101 additions and 81 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "jquery.fancytree",
"description": "Fancytree is a JavaScript tree view plugin for jQuery with support for persistence, keyboard, checkboxes, drag'n'drop, and lazy loading.",
"version": "2.10.2-0",
"version": "2.10.2",
"main": [
"dist/jquery.fancytree-all.min.js"
],
Expand Down
60 changes: 31 additions & 29 deletions dist/jquery.fancytree-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

/** Core Fancytree module.
Expand Down Expand Up @@ -1494,7 +1494,7 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{
// If a topNode was passed, make sure that it is never scrolled
// outside the upper border
if(topNode){
_assert(topNode.isRoot() || $(topNode.span).is(":visible"), "topNode must be visible");
_assert(topNode.isRootNode() || $(topNode.span).is(":visible"), "topNode must be visible");
if( topNodeY < newScrollTop ){
newScrollTop = topNodeY - topOfs;
// this.debug(" scrollIntoView(), TOP newScrollTop=", newScrollTop);
Expand Down Expand Up @@ -2725,7 +2725,7 @@ $.extend(Fancytree.prototype,
// We got {foo: 'abc', children: [...]}
// Copy extra properties to tree.data.foo
_assert($.isArray(children.children), "source must contain (or be) an array of children");
_assert(node.isRoot(), "source may only be an object for root nodes");
_assert(node.isRootNode(), "source may only be an object for root nodes");
metaData = children;
children = children.children;
delete metaData.children;
Expand Down Expand Up @@ -2793,7 +2793,7 @@ $.extend(Fancytree.prototype,
// FT.debug("nodeRemoveChildMarkup()", node.toString());
// TODO: Unlink attr.ftnode to support GC
if(node.ul){
if( node.isRoot() ) {
if( node.isRootNode() ) {
$(node.ul).empty();
} else {
$(node.ul).remove();
Expand Down Expand Up @@ -2843,7 +2843,9 @@ $.extend(Fancytree.prototype,
} else{
node.children = null;
}
node.expanded = false; // #449
if( !node.isRootNode() ) {
node.expanded = false; // #449, #459
}
this.nodeRenderStatus(ctx);
},
/**Remove HTML markup for ctx.node and all its descendents.
Expand Down Expand Up @@ -4077,7 +4079,7 @@ $.extend($.ui.fancytree,
/** @lends Fancytree_Static# */
{
/** @type {string} */
version: "2.10.1", // Set to semver by 'grunt release'
version: "2.10.2", // Set to semver by 'grunt release'
/** @type {string} */
buildType: "production", // Set to 'production' by 'grunt build'
/** @type {int} */
Expand Down Expand Up @@ -4439,8 +4441,8 @@ $.extend($.ui.fancytree,
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

// To keep the global namespace clean, we wrap everything in a closure
Expand Down Expand Up @@ -4615,8 +4617,8 @@ $.ui.fancytree.registerExtension({
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down Expand Up @@ -5067,8 +5069,8 @@ $.ui.fancytree.registerExtension({
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down Expand Up @@ -5624,8 +5626,8 @@ $.ui.fancytree.registerExtension({
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down Expand Up @@ -5932,8 +5934,8 @@ $.ui.fancytree.registerExtension({
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down Expand Up @@ -6125,8 +6127,8 @@ $.ui.fancytree.registerExtension({
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down Expand Up @@ -6258,8 +6260,8 @@ $.ui.fancytree.registerExtension({
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down Expand Up @@ -6460,8 +6462,8 @@ $.ui.fancytree.registerExtension({
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down Expand Up @@ -6835,8 +6837,8 @@ $.ui.fancytree.registerExtension({
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down Expand Up @@ -7200,8 +7202,8 @@ $.ui.fancytree.registerExtension({
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down Expand Up @@ -7276,8 +7278,8 @@ $.ui.fancytree.registerExtension({
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down
6 changes: 3 additions & 3 deletions dist/jquery.fancytree-all.min.js

Large diffs are not rendered by default.

16 changes: 9 additions & 7 deletions dist/jquery.fancytree.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

/** Core Fancytree module.
Expand Down Expand Up @@ -1494,7 +1494,7 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{
// If a topNode was passed, make sure that it is never scrolled
// outside the upper border
if(topNode){
_assert(topNode.isRoot() || $(topNode.span).is(":visible"), "topNode must be visible");
_assert(topNode.isRootNode() || $(topNode.span).is(":visible"), "topNode must be visible");
if( topNodeY < newScrollTop ){
newScrollTop = topNodeY - topOfs;
// this.debug(" scrollIntoView(), TOP newScrollTop=", newScrollTop);
Expand Down Expand Up @@ -2725,7 +2725,7 @@ $.extend(Fancytree.prototype,
// We got {foo: 'abc', children: [...]}
// Copy extra properties to tree.data.foo
_assert($.isArray(children.children), "source must contain (or be) an array of children");
_assert(node.isRoot(), "source may only be an object for root nodes");
_assert(node.isRootNode(), "source may only be an object for root nodes");
metaData = children;
children = children.children;
delete metaData.children;
Expand Down Expand Up @@ -2793,7 +2793,7 @@ $.extend(Fancytree.prototype,
// FT.debug("nodeRemoveChildMarkup()", node.toString());
// TODO: Unlink attr.ftnode to support GC
if(node.ul){
if( node.isRoot() ) {
if( node.isRootNode() ) {
$(node.ul).empty();
} else {
$(node.ul).remove();
Expand Down Expand Up @@ -2843,7 +2843,9 @@ $.extend(Fancytree.prototype,
} else{
node.children = null;
}
node.expanded = false; // #449
if( !node.isRootNode() ) {
node.expanded = false; // #449, #459
}
this.nodeRenderStatus(ctx);
},
/**Remove HTML markup for ctx.node and all its descendents.
Expand Down Expand Up @@ -4077,7 +4079,7 @@ $.extend($.ui.fancytree,
/** @lends Fancytree_Static# */
{
/** @type {string} */
version: "2.10.1", // Set to semver by 'grunt release'
version: "2.10.2", // Set to semver by 'grunt release'
/** @type {string} */
buildType: "production", // Set to 'production' by 'grunt build'
/** @type {int} */
Expand Down
8 changes: 4 additions & 4 deletions dist/jquery.fancytree.min.js

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions dist/skin-custom-1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### Creating Custom Skins

1. Create a folder like this (recommended name: 'src/skin-custom-...')
2. For a start copy files from one of the existing skin folders (src/skin-...)
to the custom folder:
- ui.fancytree.less (required)
- icons.gif (if needed)
- loading.gif (if needed)
3. cd to your fancytree folder and run `grunt dev` from the connsole.<br>
Note: NPM and Grunt are required.
Read [how to install the toolset](https://github.com/mar10/fancytree/wiki/HowtoContribute#install-the-source-code-and-tools-for-debugging-and-contributing).
4. Edit and save your ui.fancytree.less file.<br>
The `ui.fancytree.css` will be generated and updated automatically from
the LESS file.
4 changes: 2 additions & 2 deletions dist/src/jquery.fancytree.childcounter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

// To keep the global namespace clean, we wrap everything in a closure
Expand Down
4 changes: 2 additions & 2 deletions dist/src/jquery.fancytree.clones.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down
4 changes: 2 additions & 2 deletions dist/src/jquery.fancytree.columnview.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down
4 changes: 2 additions & 2 deletions dist/src/jquery.fancytree.debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down
4 changes: 2 additions & 2 deletions dist/src/jquery.fancytree.dnd.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down
4 changes: 2 additions & 2 deletions dist/src/jquery.fancytree.edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down
4 changes: 2 additions & 2 deletions dist/src/jquery.fancytree.filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down
4 changes: 2 additions & 2 deletions dist/src/jquery.fancytree.glyph.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down
4 changes: 2 additions & 2 deletions dist/src/jquery.fancytree.gridnav.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.10.1
* @date 2015-06-27T22:07
* @version 2.10.2
* @date 2015-07-02T08:11
*/

;(function($, window, document, undefined) {
Expand Down
Loading

0 comments on commit a5d57ff

Please sign in to comment.