rem: for (var i = 0; i < spans.length; ++i) { var el = spans[i]; if (/HA-spellcheck-error/.test(el.className)) { sps.push(el); el.onclick = wordClicked; el.onmouseover = wordMouseOver; el.onmouseout = wordMouseOut; el.__msh_id = id++; var txt = (el.__msh_origWord = el.firstChild.data); el.__msh_fixed = false;  if (typeof allWords[txt] == "undefined") { allWords[txt] = [el]; } else { allWords[txt].push(el); } } 
add:  for (var i = 0; i < spans.length; ++i) { var el = spans[i]; if (/HA-spellcheck-error/.test(el.className)) { sps.push(el); el.onclick = wordClicked; el.onmouseover = wordMouseOver; el.onmouseout = wordMouseOut; el.__msh_id = id++; var txt = (el.__msh_origWord = el.firstChild.data); el.__msh_fixed = false;  if (typeof allWords[txt] == "undefined") { allWords[txt] = [el]; } else { allWords[txt].push(el); } 
context: function finishedSpellChecking() {	// initialization of global variables	currentElement = null;	wrongWords = null;	allWords = {};	document.getElementById("status").innerHTML = "&nbsp;Spell Checker ";	var doc = frame.contentWindow.document;		var spans = doc.getElementsByTagName("span");		var sps = [];	var id = 0;		for (var i = 0; i < spans.length; ++i) {				var el = spans[i];				if (/HA-spellcheck-error/.test(el.className)) {					sps.push(el);					el.onclick = wordClicked;					el.onmouseover = wordMouseOver;					el.onmouseout = wordMouseOut;					el.__msh_id = id++;					var txt = (el.__msh_origWord = el.firstChild.data);					el.__msh_fixed = false;										if (typeof allWords[txt] == "undefined") {						allWords[txt] = [el];					} else {						allWords[txt].push(el);					}				}		}	wrongWords = sps;	if (sps.length == 0) {		if (!modified) {			alert('There were no errors found.');		} else {			alert('No Errors');		}		return false;	}	(currentElement = sps[0]).onclick();	var as = doc.getElementsByTagName("a");	for (var i = as.length; --i >= 0;) {		var a = as[i];		a.onclick = function() {			if (confirm("You have clicked a link" + ":\n" +				    this.href + "\n" + "I will open it in a new page.")) {				window.open(this.href);			}			return false;		};	}	var dicts = doc.getElementById("HA-spellcheck-dictionaries");	if (dicts) {		dicts.parentNode.removeChild(dicts);		dicts = dicts.innerHTML.split(/,/);		var select = document.getElementById("v_dictionaries");		for (var i = select.length; --i >= 0;) {			select.remove(i);		}		for (var i = 0; i < dicts.length; ++i) {			var txt = dicts[i];			var option = document.createElement("option");			option.value = txt;			option.appendChild(document.createTextNode(txt));			select.appendChild(option);		}	}};
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/f35320be2513e7f5329a05f05b14412cbc31f533/spell_checker.js/buggy/fudge/wysiwyg/plugins/spell_checker/spell_checker.js