diff --git a/bower.json b/bower.json index 73fbb6a9..113f859d 100644 --- a/bower.json +++ b/bower.json @@ -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.4.1-0", + "version": "2.4.1", "main": [ "dist/jquery.fancytree-all.min.js" ], diff --git a/dist/jquery.fancytree-all.js b/dist/jquery.fancytree-all.js index 92603b76..31215c08 100644 --- a/dist/jquery.fancytree-all.js +++ b/dist/jquery.fancytree-all.js @@ -7,8 +7,8 @@ * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ /** Core Fancytree module. @@ -844,7 +844,7 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{ } return true; } - return ( this.children && this.children.length ); + return !!( this.children && this.children.length ); }, /** Return true if node has keyboard focus. * @returns {boolean} @@ -3905,7 +3905,7 @@ $.extend($.ui.fancytree, /** @lends Fancytree_Static# */ { /** @type {string} */ - version: "2.4.0", // Set to semver by 'grunt release' + version: "2.4.1", // Set to semver by 'grunt release' /** @type {string} */ buildType: "production", // Set to 'production' by 'grunt build' /** @type {int} */ @@ -4204,8 +4204,8 @@ $.extend($.ui.fancytree, * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ // To keep the global namespace clean, we wrap everything in a closure @@ -4380,8 +4380,8 @@ $.ui.fancytree.registerExtension({ * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ ;(function($, window, document, undefined) { @@ -4826,8 +4826,8 @@ $.ui.fancytree.registerExtension({ * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ ;(function($, window, document, undefined) { @@ -5370,8 +5370,8 @@ $.ui.fancytree.registerExtension({ * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ ;(function($, window, document, undefined) { @@ -5716,8 +5716,8 @@ $.ui.fancytree.registerExtension({ * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ ;(function($, window, document, undefined) { @@ -5878,8 +5878,8 @@ $.ui.fancytree.registerExtension({ * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ ;(function($, window, document, undefined) { @@ -6011,8 +6011,8 @@ $.ui.fancytree.registerExtension({ * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ ;(function($, window, document, undefined) { @@ -6213,8 +6213,8 @@ $.ui.fancytree.registerExtension({ * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ ;(function($, window, document, undefined) { @@ -6545,8 +6545,8 @@ $.ui.fancytree.registerExtension({ * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ ;(function($, window, document, undefined) { @@ -6902,8 +6902,8 @@ $.ui.fancytree.registerExtension({ * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * - * @version 2.4.0 - * @date 2014-09-21T13:14 + * @version 2.4.1 + * @date 2014-09-23T19:33 */ ;(function($, window, document, undefined) { diff --git a/dist/jquery.fancytree-all.min.js b/dist/jquery.fancytree-all.min.js index 1bef8d8e..1f54dd53 100644 --- a/dist/jquery.fancytree-all.min.js +++ b/dist/jquery.fancytree-all.min.js @@ -1,4 +1,4 @@ -/*! jQuery Fancytree Plugin - 2.4.0 - 2014-09-21T13:14 +/*! jQuery Fancytree Plugin - 2.4.1 - 2014-09-23T19:33 * https://github.com/mar10/fancytree * Copyright (c) 2014 Martin Wendt; Licensed MIT */ (function( factory ) { @@ -10,8 +10,8 @@ }(function( $ ) { -!function(a,b,c,d){"use strict";function e(b){b=b||"",a.error("Not implemented: "+b)}function f(b,c){b||(c=c?": "+c:"",a.error("Fancytree assertion failed"+c))}function g(a,c){var d,e,f=b.console?b.console[a]:null;if(f)if(f.apply)f.apply(b.console,c);else{for(e="",d=0;de;return!0}function j(a,b,c,d,e){var f=function(){var c=b[a],f=d[a],g=b.ext[e],h=function(){return c.apply(b,arguments)};return function(){var a=b._local,c=b._super;try{return b._local=g,b._super=h,f.apply(b,arguments)}finally{b._local=a,b._super=c}}}();return f}function k(b,c,d,e){for(var f in d)"function"==typeof d[f]?"function"==typeof b[f]?b[f]=j(f,b,c,d,e):"_"===f.charAt(0)?b.ext[e][f]=j(f,b,c,d,e):a.error("Could not override tree."+f+". Use prefix '_' to create tree."+e+"._"+f):"options"!==f&&(b.ext[e][f]=d[f])}function l(b,c){return b===d?a.Deferred(function(){this.resolve()}).promise():a.Deferred(function(){this.resolveWith(b,c)}).promise()}function m(b,c){return b===d?a.Deferred(function(){this.reject()}).promise():a.Deferred(function(){this.rejectWith(b,c)}).promise()}function n(a,b){return function(){a.resolveWith(b)}}function o(b){var c=a.extend({},b.data()),d=c.json;return delete c.fancytree,d&&(delete c.json,c=a.extend(c,d)),c}function p(a){return a=a.toLowerCase(),function(b){return b.title.toLowerCase().indexOf(a)>=0}}function q(b,c){var d,e,g,h;for(this.parent=b,this.tree=b.tree,this.ul=null,this.li=null,this.statusNodeType=null,this._isLoading=!1,this._error=null,this.data={},d=0,e=x.length;e>d;d++)g=x[d],this[g]=c[g];c.data&&a.extend(this.data,c.data);for(g in c)y[g]||a.isFunction(c[g])||z[g]||(this.data[g]=c[g]);null==this.key?this.tree.options.defaultKey?(this.key=this.tree.options.defaultKey(this),f(this.key,"defaultKey() must return a unique key")):this.key="_"+t._nextNodeKey++:this.key=""+this.key,c.active&&(f(null===this.tree.activeNode,"only one active node allowed"),this.tree.activeNode=this),c.selected&&(this.tree.lastSelectedNode=this),this.children=null,h=c.children,h&&h.length&&this._setChildren(h),this.tree._callHook("treeRegisterNode",this.tree,!0,this)}function r(b){this.widget=b,this.$div=b.element,this.options=b.options,this.options&&a.isFunction(this.options.lazyload)&&(a.isFunction(this.options.lazyLoad)||(this.options.lazyLoad=function(){t.warn("The 'lazyload' event is deprecated since 2014-02-25. Use 'lazyLoad' (with uppercase L) instead."),b.options.lazyload.apply(this,arguments)})),this.options&&a.isFunction(this.options.loaderror)&&a.error("The 'loaderror' event was renamed since 2014-07-03. Use 'loadError' (with uppercase E) instead."),this.ext={},this.data=o(this.$div),this._id=null==this.options.id?a.ui.fancytree._nextId++:this.options.id,this._ns=".fancytree-"+this._id,this.activeNode=null,this.focusNode=null,this._hasFocus=null,this.lastSelectedNode=null,this.systemFocusElement=null,this.statusClassPropName="span",this.ariaPropName="li",this.nodeContainerAttrName="li",this.$div.find(">ul.fancytree-container").remove();var c,d={tree:this};this.rootNode=new q(d,{title:"root",key:"root_"+this._id,children:null,expanded:!0}),this.rootNode.parent=null,c=a("