isudatateam / datateam

Invalid variable usage JS-0043
Anti-pattern
Critical
3 months ago3 months old
'opt' used outside of binding context
290	 var opt = document.createElement("option");
291     opt.text = '-- SELECT FROM LIST --';
292     opt.value = 'invalid';
293     el.options.add(opt);294	 
295     for (i=0;i<farmercodes.length;i++){
296         var opt = document.createElement("option");
'opt' used outside of binding context
289
290	 var opt = document.createElement("option");
291     opt.text = '-- SELECT FROM LIST --';
292     opt.value = 'invalid';293     el.options.add(opt);
294	 
295     for (i=0;i<farmercodes.length;i++){
'opt' used outside of binding context
288	 }
289
290	 var opt = document.createElement("option");
291     opt.text = '-- SELECT FROM LIST --';292     opt.value = 'invalid';
293     el.options.add(opt);
294	 
'opt' used outside of binding context
287	 	el.removeChild(el.childNodes[0]);
288	 }
289
290	 var opt = document.createElement("option");291     opt.text = '-- SELECT FROM LIST --';
292     opt.value = 'invalid';
293     el.options.add(opt);
'prop' used outside of binding context
176	  		error: function(data, status){
177	  			msg = "";
178	  			for (prop in data){
179	  				msg += "property: " + prop + " value: [" + data[prop] + "]\n";180
181	  			}
182	  			console.log(msg);