rem: summary.onchange = summaryCheck; summary.onkeyup  = summaryCheck; 
add: addEvent(summary, 'change', summaryCheck); addEvent(summary, 'keyup', summaryCheck); 
context: function initChangeCheck(msg){    if(!document.getElementById){ return false; }    // add change check for links    var links = document.getElementsByTagName('a');    for(var i=0; i < links.length; i++){        if(links[i].className.indexOf('JSnocheck') == -1){            links[i].onclick = function(){                                    var rc = changeCheck(msg);                                    if(window.event) window.event.returnValue = rc;                                    return rc;                               };            links[i].onkeypress = function(){                                    var rc = changeCheck(msg);                                    if(window.event) window.event.returnValue = rc;                                    return rc;                               };        }    }    // add change check for forms    var forms = document.forms;    for(i=0; i < forms.length; i++){        if(forms[i].className.indexOf('JSnocheck') == -1){            forms[i].onsubmit = function(){                                    var rc = changeCheck(msg);                                    if(window.event) window.event.returnValue = rc;                                    return rc;                               };        }    }    // reset change memory var on submit    var btn_save        = document.getElementById('edbtn__save');    btn_save.onclick    = function(){ textChanged = false; };    btn_save.onkeypress = function(){ textChanged = false; };    var btn_prev        = document.getElementById('edbtn__preview');    btn_prev.onclick    = function(){ textChanged = false; };    btn_prev.onkeypress = function(){ textChanged = false; };    // add change memory setter    var edit_text   = document.getElementById('wiki__text');    edit_text.onchange = function(){        textChanged = true; //global var        summaryCheck();    };    edit_text.onkeyup  = summaryCheck;    var summary = document.getElementById('edit__summary');    summary.onchange = summaryCheck;    summary.onkeyup  = summaryCheck;    // set focus    edit_text.focus();}
meta: 4895	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4895/bd0e7faf935c5c141a0fd6740587f8d6de1128ed/edit.js/clean/lib/scripts/edit.js