Code Duplication    Length = 20-20 lines in 2 locations

api/js/dhtmlxtree/sources/dhtmlxtree.js 2 locations

@@ 3607-3626 (lines=20) @@
3604
*     @edition: Professional
3605
*     @topic: 6
3606
*/
3607
   dhtmlXTreeObject.prototype._getAllFatItems =function(node)
3608
   {
3609
      var z="";
3610
      for (var i=0; i<node.childsCount; i++)
3611
        {
3612
            if ((node.childNodes[i].unParsed)||(node.childNodes[i].childsCount>0))
3613
            {
3614
             if (!z) z=""+node.childNodes[i].id;
3615
                else z+=this.dlmtr+node.childNodes[i].id;
3616
3617
                    if (node.childNodes[i].unParsed)
3618
                        var zb=this._getAllFatItemsXML(node.childNodes[i].unParsed,1);
3619
                    else
3620
                       var zb=this._getAllFatItems(node.childNodes[i])
3621
3622
                 if (zb) z+=this.dlmtr+zb;
3623
         }
3624
         }
3625
          return z;
3626
   };
3627
3628
/**
3629
*     @desc: Returns the list of all items which have child nodes, separated by default delimiter.
@@ 2645-2664 (lines=20) @@
2642
*     @topic: 6
2643
*/
2644
2645
   dhtmlXTreeObject.prototype._getAllFatItems =function(node)
2646
   {
2647
      var z="";
2648
      for (var i=0; i<node.childsCount; i++)
2649
        {
2650
            if ((node.childNodes[i].unParsed)||(node.childNodes[i].childsCount>0))
2651
            {
2652
             if (!z) z=""+node.childNodes[i].id;
2653
                else z+=this.dlmtr+node.childNodes[i].id;
2654
2655
                    if (node.childNodes[i].unParsed)
2656
                        var zb=this._getAllFatItemsXML(node.childNodes[i].unParsed,1);
2657
                    else
2658
                       var zb=this._getAllFatItems(node.childNodes[i])
2659
2660
                 if (zb) z+=this.dlmtr+zb;
2661
         }
2662
         }
2663
          return z;
2664
   };
2665
2666
2667
/**