Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 193-199 (lines=7) @@
190
		if (t == true) { this._selectedSubItems.push(new Array(item, polygon)); }
191
		return t;
192
	}
193
	this._removeSubItemFromSelected = function(item, polygon) {
194
		var m = new Array();
195
		var t = false;
196
		for (var q=0; q<this._selectedSubItems.length; q++) { if ((this._selectedSubItems[q][0] == item) && (this._selectedSubItems[q][1] == polygon)) { t = true; } else { m[m.length] = this._selectedSubItems[q]; } }
197
		if (t == true) { this._selectedSubItems = m; }
198
		return t;
199
	}
200
	this._getSubItemToDeselectByPolygon = function(polygon) {
201
		var m = new Array();
202
		for (var q=0; q<this._selectedSubItems.length; q++) {

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

@@ 184-190 (lines=7) @@
181
		if (t == true) { this._selectedSubItems.push(new Array(item, polygon)); }
182
		return t;
183
	}
184
	this._removeSubItemFromSelected = function(item, polygon) {
185
		var m = new Array();
186
		var t = false;
187
		for (var q=0; q<this._selectedSubItems.length; q++) { if ((this._selectedSubItems[q][0] == item) && (this._selectedSubItems[q][1] == polygon)) { t = true; } else { m[m.length] = this._selectedSubItems[q]; } }
188
		if (t == true) { this._selectedSubItems = m; }
189
		return t;
190
	}
191
	this._getSubItemToDeselectByPolygon = function(polygon) {
192
		var m = new Array();
193
		for (var q=0; q<this._selectedSubItems.length; q++) {