diff --git a/bower.json b/bower.json index 7dfd2655..fc1cedc9 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.10.3-0", + "version": "2.11.0", "main": [ "dist/jquery.fancytree-all.min.js" ], diff --git a/dist/jquery.fancytree-all.js b/dist/jquery.fancytree-all.js index 1149a838..14b434ac 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.10.2 - * @date 2015-07-02T08:11 + * @version 2.11.0 + * @date 2015-07-26T10:22 */ /** Core Fancytree module. @@ -279,7 +279,7 @@ function FancytreeNode(parent, obj){ this.li = null; //
  • tag this.statusNodeType = null; // if this is a temp. node to display the status of its parent this._isLoading = false; // if this node itself is loading - this._error = null; // {message: '...'} if a load error occured + this._error = null; // {message: '...'} if a load error occurred this.data = {}; // TODO: merge this code with node.toDict() @@ -1598,7 +1598,7 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{ * The result is compatible with node.addChildren(). * * @param {boolean} [recursive=false] include child nodes - * @param {function} [callback] callback(dict) is called for every node, in order to allow modifications + * @param {function} [callback] callback(dict, node) is called for every node, in order to allow modifications * @returns {NodeData} */ toDict: function(recursive, callback) { @@ -1618,7 +1618,7 @@ FancytreeNode.prototype = /** @lends FancytreeNode# */{ } } if( callback ){ - callback(dict); + callback(dict, self); } if( recursive ) { if(this.hasChildren()){ @@ -1835,7 +1835,7 @@ function Fancytree(widget) { // Create root markup $ul = $("