text: ;(function($,undefined){"use strict";$.ui.fancytree._FancytreeClass.prototype.countSelected=function(topOnly){var tree=this,treeOptions=tree.options;return tree.getSelectedNodes(topOnly).length;};$.ui.fancytree._FancytreeNodeClass.prototype.toUpper=function(){var node=this;return node.setTitle(node.title.toUpperCase());};$.ui.fancytree.prototype.widgetMethod1=function(arg1){var tree=this.tree;return arg1;};$.ui.fancytree.registerExtension({name:"childcounter",version:"1.0.0",options:{deep:true,hideZeros:true,hideExpanded:false},foo:42,_appendCounter:function(bar){var tree=this;},treeInit:function(ctx){var tree=this,opts=ctx.options,extOpts=ctx.options.childcounter;this._super(ctx);this.$container.addClass("fancytree-ext-childcounter");},treeDestroy:function(ctx){this._super(ctx);},nodeRenderTitle:function(ctx,title){var node=ctx.node,extOpts=ctx.options.childcounter,count=(node.data.childCounter==null)?node.countChildren(extOpts.deep):+node.data.childCounter;this._super(ctx,title);if((count||!extOpts.hideZeros)&&(!node.isExpanded()||!extOpts.hideExpanded)){$("span.fancytree-icon",node.span).append($("<span class='fancytree-childcounter'/>").text(count));}},nodeSetExpanded:function(ctx,flag,opts){var tree=ctx.tree,node=ctx.node;return this._super(ctx,flag,opts).always(function(){tree.nodeRenderTitle(ctx);});}});}(jQuery));