rem: if ( typeof(this.Map.PolylineSets) != 'undefined' ){ for ( i=0; i<this.Map.PolylineSets.length; i++ ){ if ( this.Map.PolylineSets[i] != null ){ selectRoot.options[selectRoot.options.length] = new Option( this.Map.PolylineSets[i].name, this.Map.PolylineSets[i].set_id ); 
add: if ( typeof(this.Map.polylinesets) != 'undefined' ){ for ( i=0; i<this.Map.polylinesets.length; i++ ){ if ( this.Map.polylinesets[i] != null ){ selectRoot.options[selectRoot.options.length] = new Option( this.Map.polylinesets[i].name, this.Map.polylinesets[i].set_id ); 
context: BitMap.Edit.prototype.newPolyline = function(){		var check = false;  	for (var i=0; i<this.Map.PolylineSets.length; i++){  		if ( this.Map.PolylineSets[i] != null ){				check = true;  		}  	}  	if (check == false){  		//set warning message, show it, fade it  		$('errortext').innerHTML = "To add a polyline, there first must be a polyline set associated with this map. Please create a new polyline set, then you can add your new polyline!";			BitMap.show('editerror');  		Fat.fade_all();  		//display new polyline set form      this.newPolylineSet();		}else{      // Display the New Form Div and Cancel Button     	BitMap.show('newpolylineform');  		// Reset the Form  		$('polylineform_new').reset();  		  		// shortcut to the Select Option we are adding to  		var selectRoot = $('polylineset_id');  		  		selectRoot.options.length = 0;    		// add option for each set available  		if ( typeof(this.Map.PolylineSets) != 'undefined' ){    			for ( i=0; i<this.Map.PolylineSets.length; i++ ){  						if ( this.Map.PolylineSets[i] != null ){                 	selectRoot.options[selectRoot.options.length] = new Option( this.Map.PolylineSets[i].name, this.Map.PolylineSets[i].set_id );  						}    			}  		}		}};
meta: 1713	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1713/2eef737ce2ef3e61972dfb2479a868b6936f6ae7/Edit.js/buggy/templates/Edit.js