Code Duplication    Length = 13-13 lines in 2 locations

api/js/egw_action/test/js/dhtmlxmenu.js 1 location

@@ 1331-1343 (lines=13) @@
1328
	*/
1329
}
1330
/* collect parents for remove complex item */
1331
dhtmlXMenuObject.prototype._getAllParents = function(id) {
1332
	var parents = new Array();
1333
	for (var a in this.itemPull) {
1334
		if (this.itemPull[a]["parent"] == id) {
1335
			parents[parents.length] = this.itemPull[a]["id"];
1336
			if (this.itemPull[a]["complex"]) {
1337
				var t = this._getAllParents(this.itemPull[a]["id"]);
1338
				for (var q=0; q<t.length; q++) { parents[parents.length] = t[q]; }
1339
			}
1340
		}
1341
	}
1342
	return parents;
1343
}
1344
1345
//#menu_context:06062008{
1346
	

api/js/dhtmlxMenu/sources/dhtmlxmenu.js 1 location

@@ 1299-1311 (lines=13) @@
1296
	
1297
}
1298
/* collect parents for remove complex item */
1299
dhtmlXMenuObject.prototype._getAllParents = function(id) {
1300
	var parents = new Array();
1301
	for (var a in this.itemPull) {
1302
		if (this.itemPull[a]["parent"] == id) {
1303
			parents[parents.length] = this.itemPull[a]["id"];
1304
			if (this.itemPull[a]["complex"]) {
1305
				var t = this._getAllParents(this.itemPull[a]["id"]);
1306
				for (var q=0; q<t.length; q++) { parents[parents.length] = t[q]; }
1307
			}
1308
		}
1309
	}
1310
	return parents;
1311
}
1312
1313
//#menu_context:06062008{
1314