rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
/* user event */ if( win.onresize ) win.onresize(); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; if( widthp && heightp ) { document.onmousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { document.onmousemove = false; } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-iwindow.js/clean/share/hop-iwindow.js |
|
document.onmousemove = function( event ) { if( event == undefined ) event = window.event; | mousemove = function( event ) { | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
} | }; hop_add_event_listener( document, "mousemove", mousemove ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
document.onmousemove = function( event ) { if( event == undefined ) event = window.event; | mousemove = function( event ) { | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
} | }; hop_add_event_listener( document, "mousemove", mousemove ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
document.onmousemove = function( event ) { if( event == undefined ) event = window.event; | mousemove = function( event ) { | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
} | }; hop_add_event_listener( document, "mousemove", mousemove ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
document.onmousemove = function( event ) { if( event == undefined ) event = window.event; | mousemove = function( event ) { | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
if( event == undefined ) event = window.event; | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
|
document.onmousemove = false; | hop_remove_event_listener( document, "mousemove", mousemove ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
event.preventDefault(); event.stopPropagation(); | hop_stop_propagation( event ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { if( event == undefined ) event = window.event; win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
var x0 = event.clientX; var y0 = event.clientY; | var x0 = hop_mouse_x( event ); var y0 = hop_mouse_y( event ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; win.el_body.style.display = "none"; if( widthp && heightp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } hop_add_event_listener( document, "mousemove", mousemove ); } } } document.onmouseup = function( event ) { win.el_body.style.display = "block"; hop_remove_event_listener( document, "mousemove", mousemove ); /* user event */ if( win.onresize ) win.onresize(); } hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
win.el_body.style.display = "none"; | hop_style_set( win.el_body, "display", "none" ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; win.el_body.style.display = "none"; if( widthp && heightp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } hop_add_event_listener( document, "mousemove", mousemove ); } } } document.onmouseup = function( event ) { win.el_body.style.display = "block"; hop_remove_event_listener( document, "mousemove", mousemove ); /* user event */ if( win.onresize ) win.onresize(); } hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); | hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) ); hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; win.el_body.style.display = "none"; if( widthp && heightp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } hop_add_event_listener( document, "mousemove", mousemove ); } } } document.onmouseup = function( event ) { win.el_body.style.display = "block"; hop_remove_event_listener( document, "mousemove", mousemove ); /* user event */ if( win.onresize ) win.onresize(); } hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
win.el_main.style.width = w0 + (event.clientX - x0); | hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; win.el_body.style.display = "none"; if( widthp && heightp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } hop_add_event_listener( document, "mousemove", mousemove ); } } } document.onmouseup = function( event ) { win.el_body.style.display = "block"; hop_remove_event_listener( document, "mousemove", mousemove ); /* user event */ if( win.onresize ) win.onresize(); } hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
win.el_main.style.height = h0 + (event.clientY - y0); | hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; win.el_body.style.display = "none"; if( widthp && heightp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } hop_add_event_listener( document, "mousemove", mousemove ); } } } document.onmouseup = function( event ) { win.el_body.style.display = "block"; hop_remove_event_listener( document, "mousemove", mousemove ); /* user event */ if( win.onresize ) win.onresize(); } hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); | var w = w0 + (x0 - hop_mouse_y( event )); hop_style_set( win ,"left", (l0 + w0) - w ); hop_style_set( win.el_main, "width", w ); hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; win.el_body.style.display = "none"; if( widthp && heightp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } hop_add_event_listener( document, "mousemove", mousemove ); } } } document.onmouseup = function( event ) { win.el_body.style.display = "block"; hop_remove_event_listener( document, "mousemove", mousemove ); /* user event */ if( win.onresize ) win.onresize(); } hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
document.onmouseup = function( event ) { win.el_body.style.display = "block"; | var mouseup = function( event ) { hop_style_set( win.el_body, "display", "block" ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; win.el_body.style.display = "none"; if( widthp && heightp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } hop_add_event_listener( document, "mousemove", mousemove ); } } } document.onmouseup = function( event ) { win.el_body.style.display = "block"; hop_remove_event_listener( document, "mousemove", mousemove ); /* user event */ if( win.onresize ) win.onresize(); } hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
hop_add_event_listener( document, "mouseup", mouseup ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; win.el_body.style.display = "none"; if( widthp && heightp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { win.el_main.style.height = h0 + (event.clientY - y0); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } hop_add_event_listener( document, "mousemove", mousemove ); } } } document.onmouseup = function( event ) { win.el_body.style.display = "block"; hop_remove_event_listener( document, "mousemove", mousemove ); /* user event */ if( win.onresize ) win.onresize(); } hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
|
if( event == undefined ) event = window.event; | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = event.clientX; var y0 = event.clientY; var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; win.el_body.style.display = "none"; if( widthp && heightp ) { document.onmousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); win.el_main.style.height = h0 + (event.clientY - y0); } } else { if( widthp ) { document.onmousemove = function( event ) { win.el_main.style.width = w0 + (event.clientX - x0); } } else { if( heightp ) { document.onmousemove = function( event ) { win.el_main.style.height = h0 + (event.clientY - y0); } } else { var l0 = win.offsetLeft; document.onmousemove = function( event ) { var w = w0 + (x0 - event.clientX); win.style.left = (l0 + w0) - w; win.el_main.style.width = w; win.el_main.style.height = h0 + (event.clientY - y0); } } } } document.onmouseup = function( event ) { win.el_body.style.display = "block"; document.onmousemove = false; /* user event */ if( win.onresize ) win.onresize(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d9d6b2e3c521aa0e9b012cc36e10a59371fdfee5/hop-iwindow.js/buggy/share/hop-iwindow.js |
|
/* I don't why yet, IE 7 does not include SCRIPT nodes */ /* in the resulting node! */ | function hop_js_eval( http ) { if( http.responseText != null ) { var node = document.createElement( "div" ); /* I don't why yet, IE 7 does not include SCRIPT nodes */ /* in the resulting node! */ node.innerHTML = http.responseText; return hop_node_eval( node ); } return false;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/0f13875c170bf295e968ddf1b168f1b43c73a3ad/hop.js/clean/share/hop.js |
|
return hop_node_eval( node ); | return hop_node_eval( node, http.responseText ); | function hop_js_eval( http ) { if( http.responseText != null ) { var node = document.createElement( "div" ); /* I don't why yet, IE 7 does not include SCRIPT nodes */ /* in the resulting node! */ node.innerHTML = http.responseText; return hop_node_eval( node ); } return false;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/0f13875c170bf295e968ddf1b168f1b43c73a3ad/hop.js/clean/share/hop.js |
paned.style.height = "inherit"; | hop_style_set( paned, "height", "inherit" ); | function hop_make_hpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var td1, td2, pcursor, cursor; var tr1, tr2, tr3; // the paned var paned = document.createElement( "div" ); paned.className = klass, paned.style.height = "inherit"; // the cursor pcursor = document.createElement( "div" ); pcursor.className = "hop-paned-cursor"; // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.appendChild( pan1 ); paned.appendChild( pcursor ); paned.appendChild( pan2 ); cursor = document.createElement( "div" ); cursor.className = "hop-paned-cursoroff"; cursor.style.width = "100%"; cursor.style.height = "100%"; pcursor.appendChild( cursor ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.cursor = pcursor; parent.appendChild( paned ); // cursor event handling var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_hpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { cursor.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { cursor.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); } return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
cursor.style.width = "100%"; cursor.style.height = "100%"; | hop_style_set( cursor, "width", "100%" ); hop_style_set( cursor, "height", "100%" ); | function hop_make_hpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var td1, td2, pcursor, cursor; var tr1, tr2, tr3; // the paned var paned = document.createElement( "div" ); paned.className = klass, paned.style.height = "inherit"; // the cursor pcursor = document.createElement( "div" ); pcursor.className = "hop-paned-cursor"; // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.appendChild( pan1 ); paned.appendChild( pcursor ); paned.appendChild( pan2 ); cursor = document.createElement( "div" ); cursor.className = "hop-paned-cursoroff"; cursor.style.width = "100%"; cursor.style.height = "100%"; pcursor.appendChild( cursor ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.cursor = pcursor; parent.appendChild( paned ); // cursor event handling var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_hpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { cursor.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { cursor.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); } return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; | hop_style_set( pan1, "visibility", "visible" ); hop_style_set( pan2, "visibility", "visible" ); | function hop_make_hpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var td1, td2, pcursor, cursor; var tr1, tr2, tr3; // the paned var paned = document.createElement( "div" ); paned.className = klass, paned.style.height = "inherit"; // the cursor pcursor = document.createElement( "div" ); pcursor.className = "hop-paned-cursor"; // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.appendChild( pan1 ); paned.appendChild( pcursor ); paned.appendChild( pan2 ); cursor = document.createElement( "div" ); cursor.className = "hop-paned-cursoroff"; cursor.style.width = "100%"; cursor.style.height = "100%"; pcursor.appendChild( cursor ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.cursor = pcursor; parent.appendChild( paned ); // cursor event handling var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_hpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { cursor.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { cursor.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); } return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
if( e == undefined ) e = window.event; | function hop_make_hpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var td1, td2, pcursor, cursor; var tr1, tr2, tr3; // the paned var paned = document.createElement( "div" ); paned.className = klass, paned.style.height = "inherit"; // the cursor pcursor = document.createElement( "div" ); pcursor.className = "hop-paned-cursor"; // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.appendChild( pan1 ); paned.appendChild( pcursor ); paned.appendChild( pan2 ); cursor = document.createElement( "div" ); cursor.className = "hop-paned-cursoroff"; cursor.style.width = "100%"; cursor.style.height = "100%"; pcursor.appendChild( cursor ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.cursor = pcursor; parent.appendChild( paned ); // cursor event handling var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_hpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { cursor.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { cursor.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); } return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
|
cursor.onmouseover = function( e ) { cursor.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { cursor.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { | var mousedown = function( e ) { | function hop_make_hpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var td1, td2, pcursor, cursor; var tr1, tr2, tr3; // the paned var paned = document.createElement( "div" ); paned.className = klass, paned.style.height = "inherit"; // the cursor pcursor = document.createElement( "div" ); pcursor.className = "hop-paned-cursor"; // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.appendChild( pan1 ); paned.appendChild( pcursor ); paned.appendChild( pan2 ); cursor = document.createElement( "div" ); cursor.className = "hop-paned-cursoroff"; cursor.style.width = "100%"; cursor.style.height = "100%"; pcursor.appendChild( cursor ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.cursor = pcursor; parent.appendChild( paned ); // cursor event handling var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_hpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { cursor.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { cursor.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); } return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
hop_add_event_listener( cursor, "mousedown", mousedown ); var mouseover = function( e ) { cursor.className = "hop-paned-cursoron"; }; var mouseout = function( e ) { cursor.className = "hop-paned-cursoroff"; }; hop_add_event_listener( cursor, "mouseover", mouseover ); hop_add_event_listener( cursor, "mouseout", mouseout ); | function hop_make_hpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var td1, td2, pcursor, cursor; var tr1, tr2, tr3; // the paned var paned = document.createElement( "div" ); paned.className = klass, paned.style.height = "inherit"; // the cursor pcursor = document.createElement( "div" ); pcursor.className = "hop-paned-cursor"; // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.appendChild( pan1 ); paned.appendChild( pcursor ); paned.appendChild( pan2 ); cursor = document.createElement( "div" ); cursor.className = "hop-paned-cursoroff"; cursor.style.width = "100%"; cursor.style.height = "100%"; pcursor.appendChild( cursor ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.cursor = pcursor; parent.appendChild( paned ); // cursor event handling var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_hpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { cursor.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { cursor.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); } return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
|
if( e == undefined ) e = window.event; | function hop_make_hpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var td1, td2, pcursor, cursor; var tr1, tr2, tr3; // the paned var paned = document.createElement( "div" ); paned.className = klass, paned.style.height = "inherit"; // the cursor pcursor = document.createElement( "div" ); pcursor.className = "hop-paned-cursor"; // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.appendChild( pan1 ); paned.appendChild( pcursor ); paned.appendChild( pan2 ); cursor = document.createElement( "div" ); cursor.className = "hop-paned-cursoroff"; cursor.style.width = "100%"; cursor.style.height = "100%"; pcursor.appendChild( cursor ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.cursor = pcursor; parent.appendChild( paned ); // cursor event handling var mousemove = function( e ) { hop_hpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { cursor.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { cursor.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); } return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-paned.js/buggy/share/hop-paned.js |
|
val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * 100; | /* val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * 100; */ val = ((hop_event_mouse_x( e ) - hop_element_x( slider )) / slider.offsetWidth) * 100; | function hop_make_slider( parent, id, min, max, step, value, cap, curw, curh ) { var doc = (parent == undefined ? document : parent.ownerDocument || parent.document); var slider, tbody, tr, tr2; var line1, line2, cursor; var td1, td3; var div; var caption; if( curw == undefined ) curw = 4; if( curh == undefined ) curh = "10px"; // the slider slider = doc.createElement( "table" ); slider.className = "hop-slider"; slider.id = id; slider.onchange = undefined; slider.parent = parent; slider.width = "100%"; slider.rules = "none"; slider.cellpadding = 0; slider.cellspacing = 0; slider.border = 0; node_style_set( slider, "border-collapse", "collapse" ); node_style_set( slider, "border-spacing", "0" ) parent.appendChild( slider ); tbody = doc.createElement( "tbody" ); slider.appendChild( tbody ); tr = doc.createElement( "tr" ); tr2 = doc.createElement( "tr" ); if( cap == "top" ) { tbody.appendChild( tr2 ); tbody.appendChild( tr ); } else { if( cap == "bottom" ) { tbody.appendChild( tr ); tbody.appendChild( tr2 ); } else { tbody.appendChild( tr ); } } // the two lines and the cursor line1 = doc.createElement( "td" ); line1.className = "lineleft"; line2 = doc.createElement( "td" ); line2.className = "lineright"; cursor = doc.createElement( "td" ); cursor.className = "cursor"; slider.line1 = line1; slider.line2 = line2; slider.cursor = cursor; line1.style.border = 0; line1.style.margin = 0; line1.style.padding = 0; line2.style.border = 0; line2.style.margin = 0; line2.style.padding = 0; cursor.width = (Math.round( curw / 2 ) * 2); cursor.style.width = cursor.width + "%"; cursor.style.height = curh; cursor.style.border = 0; cursor.style.margin = 0; cursor.style.padding = 0; tr.appendChild( line1 ); tr.appendChild( cursor ); tr.appendChild( line2 ); if( cap ) { td1 = doc.createElement( "td" ); caption = doc.createElement( "td" ); caption.className = "caption"; caption.align = "center"; caption.style.width = cursor.width + "%"; td3 = doc.createElement( "td" ); caption.innerHTML = ""; slider.cap = caption; tr2.appendChild( td1 ); tr2.appendChild( caption ); tr2.appendChild( td3 ); } else { slider.cap = false; } div = doc.createElement( "div" ); div.className = "lineleft"; line1.appendChild(div); div = doc.createElement( "div" ); div.className = "lineright"; line2.appendChild(div); div = doc.createElement( "div" ); div.className = "cursoroff"; div.style.height = curh; cursor.appendChild( div ); slider.min = min; slider.max = max; slider.step = step; // cursor event handling var mousemove = function( e ) { hop_slider_mousemove( e, slider ); }; var delmousemove = function( e ) { hop_remove_event_listener( doc, "mousemove", mousemove, true ); }; var onmouseover = function( e ) { div.className = "cursoron"; }; var onmouseout = function( e ) { div.className = "cursoroff"; }; var onmousedown = function( e ) { hop_add_event_listener( doc, "mousemove", mousemove, true ); hop_add_event_listener( doc, "mouseup", delmousemove, true ); hop_add_event_listener( doc, "onblur", delmousemove, true ); } hop_add_event_listener( cursor, "mouseover", onmouseover ); hop_add_event_listener( cursor, "mouseout", onmouseout ); hop_add_event_listener( cursor, "mousedown", onmousedown ); // line event handling var onlineclick = function( e ) { var val; val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * 100; hop_slider_value_set( slider, val ); } hop_add_event_listener( line1, "click", onlineclick ); hop_add_event_listener( line2, "click", onlineclick ); slider.value = min - 1; if( value != undefined ) hop_slider_value_set( slider, value ); else hop_slider_value_set( slider, min ); return slider;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/c1573df9e324193c5522cd1c1d4885de3faa3930/hop-slider.js/clean/share/hop-slider.js |
cursor.onmouseover = function( e ) { | var onmouseover = function( e ) { | function hop_make_slider( parent, id, min, max, step, value, cap, curw, curh ) { var doc = (parent == undefined ? document : parent.ownerDocument || parent.document); var slider, tbody, tr, tr2; var line1, line2, cursor; var td1, td3; var div; var caption; if( curw == undefined ) curw = 4; if( curh == undefined ) curh = "10px"; // the slider slider = doc.createElement( "table" ); slider.className = "hop-slider"; slider.id = id; slider.onchange = undefined; slider.parent = parent; slider.width = "100%"; slider.rules = "none"; slider.cellpadding = 0; slider.cellspacing = 0; slider.border = 0; hop_style_set( slider, "border-collapse", "collapse" ); hop_style_set( slider, "border-spacing", "0" ) parent.appendChild( slider ); tbody = doc.createElement( "tbody" ); slider.appendChild( tbody ); tr = doc.createElement( "tr" ); tr2 = doc.createElement( "tr" ); if( cap == "top" ) { tbody.appendChild( tr2 ); tbody.appendChild( tr ); } else { if( cap == "bottom" ) { tbody.appendChild( tr ); tbody.appendChild( tr2 ); } else { tbody.appendChild( tr ); } } // the two lines and the cursor line1 = doc.createElement( "td" ); line1.className = "lineleft"; line2 = doc.createElement( "td" ); line2.className = "lineright"; cursor = doc.createElement( "td" ); cursor.className = "cursor"; slider.line1 = line1; slider.line2 = line2; slider.cursor = cursor; line1.style.border = 0; line1.style.margin = 0; line1.style.padding = 0; line2.style.border = 0; line2.style.margin = 0; line2.style.padding = 0; cursor.width = (Math.round( curw / 2 ) * 2); cursor.style.width = cursor.width + "%"; cursor.style.height = curh; cursor.style.border = 0; cursor.style.margin = 0; cursor.style.padding = 0; tr.appendChild( line1 ); tr.appendChild( cursor ); tr.appendChild( line2 ); if( cap ) { td1 = doc.createElement( "td" ); caption = doc.createElement( "td" ); caption.className = "caption"; caption.align = "center"; caption.style.width = cursor.width + "%"; td3 = doc.createElement( "td" ); caption.innerHTML = ""; slider.cap = caption; tr2.appendChild( td1 ); tr2.appendChild( caption ); tr2.appendChild( td3 ); } else { slider.cap = false; } div = doc.createElement( "div" ); div.className = "lineleft"; line1.appendChild(div); div = doc.createElement( "div" ); div.className = "lineright"; line2.appendChild(div); div = doc.createElement( "div" ); div.className = "cursoroff"; div.style.height = curh; cursor.appendChild( div ); slider.min = min; slider.max = max; slider.step = step; // cursor event handling var mousemove = function( e ) { hop_slider_mousemove( e, slider ); }; var delmousemove = function( e ) { hop_remove_event_listener( doc, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "cursoron"; }; cursor.onmouseout = function( e ) { div.className = "cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( doc, "mousemove", mousemove, true ); hop_add_event_listener( doc, "mouseup", delmousemove, true ); hop_add_event_listener( doc, "onblur", delmousemove, true ); } // line event handling var onlineclick = function( e ) { var val; val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * 100; hop_slider_value_set( slider, val ); } line1.onclick = onlineclick; line2.onclick = onlineclick; slider.value = min - 1; if( value != undefined ) hop_slider_value_set( slider, value ); else hop_slider_value_set( slider, min ); return slider;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/b0437a3b760258723ea3639dedeb8983f5e9c448/hop-slider.js/clean/share/hop-slider.js |
cursor.onmouseout = function( e ) { | var onmouseout = function( e ) { | function hop_make_slider( parent, id, min, max, step, value, cap, curw, curh ) { var doc = (parent == undefined ? document : parent.ownerDocument || parent.document); var slider, tbody, tr, tr2; var line1, line2, cursor; var td1, td3; var div; var caption; if( curw == undefined ) curw = 4; if( curh == undefined ) curh = "10px"; // the slider slider = doc.createElement( "table" ); slider.className = "hop-slider"; slider.id = id; slider.onchange = undefined; slider.parent = parent; slider.width = "100%"; slider.rules = "none"; slider.cellpadding = 0; slider.cellspacing = 0; slider.border = 0; hop_style_set( slider, "border-collapse", "collapse" ); hop_style_set( slider, "border-spacing", "0" ) parent.appendChild( slider ); tbody = doc.createElement( "tbody" ); slider.appendChild( tbody ); tr = doc.createElement( "tr" ); tr2 = doc.createElement( "tr" ); if( cap == "top" ) { tbody.appendChild( tr2 ); tbody.appendChild( tr ); } else { if( cap == "bottom" ) { tbody.appendChild( tr ); tbody.appendChild( tr2 ); } else { tbody.appendChild( tr ); } } // the two lines and the cursor line1 = doc.createElement( "td" ); line1.className = "lineleft"; line2 = doc.createElement( "td" ); line2.className = "lineright"; cursor = doc.createElement( "td" ); cursor.className = "cursor"; slider.line1 = line1; slider.line2 = line2; slider.cursor = cursor; line1.style.border = 0; line1.style.margin = 0; line1.style.padding = 0; line2.style.border = 0; line2.style.margin = 0; line2.style.padding = 0; cursor.width = (Math.round( curw / 2 ) * 2); cursor.style.width = cursor.width + "%"; cursor.style.height = curh; cursor.style.border = 0; cursor.style.margin = 0; cursor.style.padding = 0; tr.appendChild( line1 ); tr.appendChild( cursor ); tr.appendChild( line2 ); if( cap ) { td1 = doc.createElement( "td" ); caption = doc.createElement( "td" ); caption.className = "caption"; caption.align = "center"; caption.style.width = cursor.width + "%"; td3 = doc.createElement( "td" ); caption.innerHTML = ""; slider.cap = caption; tr2.appendChild( td1 ); tr2.appendChild( caption ); tr2.appendChild( td3 ); } else { slider.cap = false; } div = doc.createElement( "div" ); div.className = "lineleft"; line1.appendChild(div); div = doc.createElement( "div" ); div.className = "lineright"; line2.appendChild(div); div = doc.createElement( "div" ); div.className = "cursoroff"; div.style.height = curh; cursor.appendChild( div ); slider.min = min; slider.max = max; slider.step = step; // cursor event handling var mousemove = function( e ) { hop_slider_mousemove( e, slider ); }; var delmousemove = function( e ) { hop_remove_event_listener( doc, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "cursoron"; }; cursor.onmouseout = function( e ) { div.className = "cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( doc, "mousemove", mousemove, true ); hop_add_event_listener( doc, "mouseup", delmousemove, true ); hop_add_event_listener( doc, "onblur", delmousemove, true ); } // line event handling var onlineclick = function( e ) { var val; val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * 100; hop_slider_value_set( slider, val ); } line1.onclick = onlineclick; line2.onclick = onlineclick; slider.value = min - 1; if( value != undefined ) hop_slider_value_set( slider, value ); else hop_slider_value_set( slider, min ); return slider;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/b0437a3b760258723ea3639dedeb8983f5e9c448/hop-slider.js/clean/share/hop-slider.js |
cursor.onmousedown = function( e ) { | var onmousedown = function( e ) { | function hop_make_slider( parent, id, min, max, step, value, cap, curw, curh ) { var doc = (parent == undefined ? document : parent.ownerDocument || parent.document); var slider, tbody, tr, tr2; var line1, line2, cursor; var td1, td3; var div; var caption; if( curw == undefined ) curw = 4; if( curh == undefined ) curh = "10px"; // the slider slider = doc.createElement( "table" ); slider.className = "hop-slider"; slider.id = id; slider.onchange = undefined; slider.parent = parent; slider.width = "100%"; slider.rules = "none"; slider.cellpadding = 0; slider.cellspacing = 0; slider.border = 0; hop_style_set( slider, "border-collapse", "collapse" ); hop_style_set( slider, "border-spacing", "0" ) parent.appendChild( slider ); tbody = doc.createElement( "tbody" ); slider.appendChild( tbody ); tr = doc.createElement( "tr" ); tr2 = doc.createElement( "tr" ); if( cap == "top" ) { tbody.appendChild( tr2 ); tbody.appendChild( tr ); } else { if( cap == "bottom" ) { tbody.appendChild( tr ); tbody.appendChild( tr2 ); } else { tbody.appendChild( tr ); } } // the two lines and the cursor line1 = doc.createElement( "td" ); line1.className = "lineleft"; line2 = doc.createElement( "td" ); line2.className = "lineright"; cursor = doc.createElement( "td" ); cursor.className = "cursor"; slider.line1 = line1; slider.line2 = line2; slider.cursor = cursor; line1.style.border = 0; line1.style.margin = 0; line1.style.padding = 0; line2.style.border = 0; line2.style.margin = 0; line2.style.padding = 0; cursor.width = (Math.round( curw / 2 ) * 2); cursor.style.width = cursor.width + "%"; cursor.style.height = curh; cursor.style.border = 0; cursor.style.margin = 0; cursor.style.padding = 0; tr.appendChild( line1 ); tr.appendChild( cursor ); tr.appendChild( line2 ); if( cap ) { td1 = doc.createElement( "td" ); caption = doc.createElement( "td" ); caption.className = "caption"; caption.align = "center"; caption.style.width = cursor.width + "%"; td3 = doc.createElement( "td" ); caption.innerHTML = ""; slider.cap = caption; tr2.appendChild( td1 ); tr2.appendChild( caption ); tr2.appendChild( td3 ); } else { slider.cap = false; } div = doc.createElement( "div" ); div.className = "lineleft"; line1.appendChild(div); div = doc.createElement( "div" ); div.className = "lineright"; line2.appendChild(div); div = doc.createElement( "div" ); div.className = "cursoroff"; div.style.height = curh; cursor.appendChild( div ); slider.min = min; slider.max = max; slider.step = step; // cursor event handling var mousemove = function( e ) { hop_slider_mousemove( e, slider ); }; var delmousemove = function( e ) { hop_remove_event_listener( doc, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "cursoron"; }; cursor.onmouseout = function( e ) { div.className = "cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( doc, "mousemove", mousemove, true ); hop_add_event_listener( doc, "mouseup", delmousemove, true ); hop_add_event_listener( doc, "onblur", delmousemove, true ); } // line event handling var onlineclick = function( e ) { var val; val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * 100; hop_slider_value_set( slider, val ); } line1.onclick = onlineclick; line2.onclick = onlineclick; slider.value = min - 1; if( value != undefined ) hop_slider_value_set( slider, value ); else hop_slider_value_set( slider, min ); return slider;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/b0437a3b760258723ea3639dedeb8983f5e9c448/hop-slider.js/clean/share/hop-slider.js |
line1.onclick = onlineclick; line2.onclick = onlineclick; | hop_add_event_listener( line1, "click", onlineclick ); hop_add_event_listener( line2, "click", onlineclick ); | function hop_make_slider( parent, id, min, max, step, value, cap, curw, curh ) { var doc = (parent == undefined ? document : parent.ownerDocument || parent.document); var slider, tbody, tr, tr2; var line1, line2, cursor; var td1, td3; var div; var caption; if( curw == undefined ) curw = 4; if( curh == undefined ) curh = "10px"; // the slider slider = doc.createElement( "table" ); slider.className = "hop-slider"; slider.id = id; slider.onchange = undefined; slider.parent = parent; slider.width = "100%"; slider.rules = "none"; slider.cellpadding = 0; slider.cellspacing = 0; slider.border = 0; hop_style_set( slider, "border-collapse", "collapse" ); hop_style_set( slider, "border-spacing", "0" ) parent.appendChild( slider ); tbody = doc.createElement( "tbody" ); slider.appendChild( tbody ); tr = doc.createElement( "tr" ); tr2 = doc.createElement( "tr" ); if( cap == "top" ) { tbody.appendChild( tr2 ); tbody.appendChild( tr ); } else { if( cap == "bottom" ) { tbody.appendChild( tr ); tbody.appendChild( tr2 ); } else { tbody.appendChild( tr ); } } // the two lines and the cursor line1 = doc.createElement( "td" ); line1.className = "lineleft"; line2 = doc.createElement( "td" ); line2.className = "lineright"; cursor = doc.createElement( "td" ); cursor.className = "cursor"; slider.line1 = line1; slider.line2 = line2; slider.cursor = cursor; line1.style.border = 0; line1.style.margin = 0; line1.style.padding = 0; line2.style.border = 0; line2.style.margin = 0; line2.style.padding = 0; cursor.width = (Math.round( curw / 2 ) * 2); cursor.style.width = cursor.width + "%"; cursor.style.height = curh; cursor.style.border = 0; cursor.style.margin = 0; cursor.style.padding = 0; tr.appendChild( line1 ); tr.appendChild( cursor ); tr.appendChild( line2 ); if( cap ) { td1 = doc.createElement( "td" ); caption = doc.createElement( "td" ); caption.className = "caption"; caption.align = "center"; caption.style.width = cursor.width + "%"; td3 = doc.createElement( "td" ); caption.innerHTML = ""; slider.cap = caption; tr2.appendChild( td1 ); tr2.appendChild( caption ); tr2.appendChild( td3 ); } else { slider.cap = false; } div = doc.createElement( "div" ); div.className = "lineleft"; line1.appendChild(div); div = doc.createElement( "div" ); div.className = "lineright"; line2.appendChild(div); div = doc.createElement( "div" ); div.className = "cursoroff"; div.style.height = curh; cursor.appendChild( div ); slider.min = min; slider.max = max; slider.step = step; // cursor event handling var mousemove = function( e ) { hop_slider_mousemove( e, slider ); }; var delmousemove = function( e ) { hop_remove_event_listener( doc, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "cursoron"; }; cursor.onmouseout = function( e ) { div.className = "cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( doc, "mousemove", mousemove, true ); hop_add_event_listener( doc, "mouseup", delmousemove, true ); hop_add_event_listener( doc, "onblur", delmousemove, true ); } // line event handling var onlineclick = function( e ) { var val; val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * 100; hop_slider_value_set( slider, val ); } line1.onclick = onlineclick; line2.onclick = onlineclick; slider.value = min - 1; if( value != undefined ) hop_slider_value_set( slider, value ); else hop_slider_value_set( slider, min ); return slider;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/b0437a3b760258723ea3639dedeb8983f5e9c448/hop-slider.js/clean/share/hop-slider.js |
table.setAttribute( "rules", "none" ); | function hop_make_tree( parent, id, level, svc, title, openp, cachedp, icondir, fo, fc , mu, ons, onus, value ) { var tree = document.createElement( "div" ); /* safety check */ if( parent == null ) { alert( "***INTERNAL ERROR: Illegal empty tree parent -- " + id ); } /* the tree first line */ var table = document.createElement( "table" ); table.setAttribute( "cellpadding", 0 ); table.setAttribute( "cellspacing", 0 ); table.setAttribute( "border", 0 ); table.className = "hop-tree"; var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ if( level > 0 ) { hop_push_vlines( icondir, parent, row, level ); } /* the plus/minus icon */ var td1 = document.createElement( "td" ); var join = document.createElement( "img" ); join.src = icondir + "/plus.png"; join.className = "hop-tree-openclose"; join.onclick = function() { hop_toggle_tree( tree ) }; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var folder = document.createElement( "img" ); folder.src = fc; folder.setAttribute( "align", "absbottom" ); folder.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( folder ); row.appendChild( td2 ); /* the title */ var e = document.createElement( "span" ); e.className = "hop-tree-head"; e.innerHTML= title; td2.appendChild( e ); row.appendChild( td2 ) row.value = value; tb.appendChild( row ); table.appendChild( tb ); tree.appendChild( table ); /* the (empty) body */ var body = document.createElement( "div" ); hop_style_set( body, "display", "none" ); body.className = "hop-tree-body"; tree.appendChild( body ); /* the attribute of the tree */ tree.className = "hop-tree"; tree.id = id; tree.parent = parent; tree.table = table; tree.body = body; tree.row = row; tree.level = level; tree.openp = false; tree.cachedp = cachedp; tree.populated = false; tree.last = true; tree.img_join = join; tree.img_folder = folder; tree.src_foldero = fo; tree.src_folderc = fc; tree.icondir = icondir; tree.service = svc; /* append the leaf to the tree */ if( level > 0 ) { hop_tree_add( parent, tree ); tree.selections = []; tree.multiselect = false; tree.onselect = false; tree.onunselect = false; } else { parent.appendChild( tree ); tree.selections = []; tree.multiselect = mu; tree.onselect = ons; tree.onunselect = onus; } /* open the tree if required */ if( openp ) { hop_tree_open( tree ); } return tree;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6d5257e20d0db537b8a47d939ab613c54c227c9e/hop-tree.js/buggy/share/hop-tree.js |
|
table.setAttribute( "border", 0 ); table.setAttribute( "rules", "none" ); | function hop_make_tree( parent, id, level, svc, title, openp, cachedp, icondir, fo, fc , mu, ons, onus, value ) { var tree = document.createElement( "div" ); /* safety check */ if( parent == null ) { alert( "***INTERNAL ERROR: Illegal empty tree parent -- " + id ); } /* the tree first line */ var table = document.createElement( "table" ); table.setAttribute( "cellpadding", 0 ); table.setAttribute( "cellspacing", 0 ); table.setAttribute( "border", 0 ); table.setAttribute( "rules", "none" ); table.className = "hop-tree"; var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ if( level > 0 ) { hop_push_vlines( icondir, parent, row, level ); } /* the plus/minus icon */ var td1 = document.createElement( "td" ); var join = document.createElement( "img" ); join.src = icondir + "/plus.png"; join.className = "hop-tree-openclose"; join.onclick = function() { hop_toggle_tree( tree ) }; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var folder = document.createElement( "img" ); folder.src = fc; folder.setAttribute( "align", "absbottom" ); folder.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( folder ); row.appendChild( td2 ); /* the title */ var e = document.createElement( "span" ); e.className = "hop-tree-head"; e.innerHTML= title; td2.appendChild( e ); row.appendChild( td2 ) row.value = value; tb.appendChild( row ); table.appendChild( tb ); tree.appendChild( table ); /* the (empty) body */ var body = document.createElement( "div" ); hop_style_set( body, "display", "none" ); body.className = "hop-tree-body"; tree.appendChild( body ); /* the attribute of the tree */ tree.className = "hop-tree"; tree.id = id; tree.parent = parent; tree.table = table; tree.body = body; tree.row = row; tree.level = level; tree.openp = false; tree.cachedp = cachedp; tree.populated = false; tree.last = true; tree.img_join = join; tree.img_folder = folder; tree.src_foldero = fo; tree.src_folderc = fc; tree.icondir = icondir; tree.service = svc; /* append the leaf to the tree */ if( level > 0 ) { hop_tree_add( parent, tree ); tree.selections = []; tree.multiselect = false; tree.onselect = false; tree.onunselect = false; } else { parent.appendChild( tree ); tree.selections = []; tree.multiselect = mu; tree.onselect = ons; tree.onunselect = onus; } /* open the tree if required */ if( openp ) { hop_tree_open( tree ); } return tree;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-tree.js/clean/share/hop-tree.js |
|
join.className = "hop-tree-openclose"; | function hop_make_tree( parent, id, level, svc, title, openp, cachedp, icondir, fo, fc , mu, ons, onus, value ) { var tree = document.createElement( "div" ); /* safety check */ if( parent == null ) { alert( "***INTERNAL ERROR: Illegal empty tree parent -- " + id ); } /* the tree first line */ var table = document.createElement( "table" ); table.setAttribute( "cellpadding", 0 ); table.setAttribute( "cellspacing", 0 ); table.setAttribute( "border", 0 ); table.setAttribute( "rules", "none" ); table.className = "hop-tree"; var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ if( level > 0 ) { hop_push_vlines( icondir, parent, row, level ); } /* the plus/minus icon */ var td1 = document.createElement( "td" ); var join = document.createElement( "img" ); join.src = icondir + "/plus.png"; join.className = "hop-tree-openclose"; join.onclick = function() { hop_toggle_tree( tree ) }; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var folder = document.createElement( "img" ); folder.src = fc; folder.setAttribute( "align", "absbottom" ); folder.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( folder ); row.appendChild( td2 ); /* the title */ var e = document.createElement( "span" ); e.className = "hop-tree-head"; e.innerHTML= title; td2.appendChild( e ); row.appendChild( td2 ) row.value = value; tb.appendChild( row ); table.appendChild( tb ); tree.appendChild( table ); /* the (empty) body */ var body = document.createElement( "div" ); hop_style_set( body, "display", "none" ); body.className = "hop-tree-body"; tree.appendChild( body ); /* the attribute of the tree */ tree.className = "hop-tree"; tree.id = id; tree.parent = parent; tree.table = table; tree.body = body; tree.row = row; tree.level = level; tree.openp = false; tree.cachedp = cachedp; tree.populated = false; tree.last = true; tree.img_join = join; tree.img_folder = folder; tree.src_foldero = fo; tree.src_folderc = fc; tree.icondir = icondir; tree.service = svc; /* append the leaf to the tree */ if( level > 0 ) { hop_tree_add( parent, tree ); tree.selections = []; tree.multiselect = false; tree.onselect = false; tree.onunselect = false; } else { parent.appendChild( tree ); tree.selections = []; tree.multiselect = mu; tree.onselect = ons; tree.onunselect = onus; } /* open the tree if required */ if( openp ) { hop_tree_open( tree ); } return tree;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-tree.js/clean/share/hop-tree.js |
|
folder.setAttribute( "align", "absbottom" ); | function hop_make_tree( parent, id, level, svc, title, openp, cachedp, icondir, fo, fc , mu, ons, onus, value ) { var tree = document.createElement( "div" ); /* safety check */ if( parent == null ) { alert( "***INTERNAL ERROR: Illegal empty tree parent -- " + id ); } /* the tree first line */ var table = document.createElement( "table" ); table.setAttribute( "cellpadding", 0 ); table.setAttribute( "cellspacing", 0 ); table.setAttribute( "border", 0 ); table.setAttribute( "rules", "none" ); table.className = "hop-tree"; var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ if( level > 0 ) { hop_push_vlines( icondir, parent, row, level ); } /* the plus/minus icon */ var td1 = document.createElement( "td" ); var join = document.createElement( "img" ); join.src = icondir + "/plus.png"; join.className = "hop-tree-openclose"; join.onclick = function() { hop_toggle_tree( tree ) }; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var folder = document.createElement( "img" ); folder.src = fc; folder.setAttribute( "align", "absbottom" ); folder.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( folder ); row.appendChild( td2 ); /* the title */ var e = document.createElement( "span" ); e.className = "hop-tree-head"; e.innerHTML= title; td2.appendChild( e ); row.appendChild( td2 ) row.value = value; tb.appendChild( row ); table.appendChild( tb ); tree.appendChild( table ); /* the (empty) body */ var body = document.createElement( "div" ); hop_style_set( body, "display", "none" ); body.className = "hop-tree-body"; tree.appendChild( body ); /* the attribute of the tree */ tree.className = "hop-tree"; tree.id = id; tree.parent = parent; tree.table = table; tree.body = body; tree.row = row; tree.level = level; tree.openp = false; tree.cachedp = cachedp; tree.populated = false; tree.last = true; tree.img_join = join; tree.img_folder = folder; tree.src_foldero = fo; tree.src_folderc = fc; tree.icondir = icondir; tree.service = svc; /* append the leaf to the tree */ if( level > 0 ) { hop_tree_add( parent, tree ); tree.selections = []; tree.multiselect = false; tree.onselect = false; tree.onunselect = false; } else { parent.appendChild( tree ); tree.selections = []; tree.multiselect = mu; tree.onselect = ons; tree.onunselect = onus; } /* open the tree if required */ if( openp ) { hop_tree_open( tree ); } return tree;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-tree.js/clean/share/hop-tree.js |
|
row.appendChild( td2 ); | function hop_make_tree( parent, id, level, svc, title, openp, cachedp, icondir, fo, fc , mu, ons, onus, value ) { var tree = document.createElement( "div" ); /* safety check */ if( parent == null ) { alert( "***INTERNAL ERROR: Illegal empty tree parent -- " + id ); } /* the tree first line */ var table = document.createElement( "table" ); table.setAttribute( "cellpadding", 0 ); table.setAttribute( "cellspacing", 0 ); table.setAttribute( "border", 0 ); table.setAttribute( "rules", "none" ); table.className = "hop-tree"; var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ if( level > 0 ) { hop_push_vlines( icondir, parent, row, level ); } /* the plus/minus icon */ var td1 = document.createElement( "td" ); var join = document.createElement( "img" ); join.src = icondir + "/plus.png"; join.className = "hop-tree-openclose"; join.onclick = function() { hop_toggle_tree( tree ) }; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var folder = document.createElement( "img" ); folder.src = fc; folder.setAttribute( "align", "absbottom" ); folder.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( folder ); row.appendChild( td2 ); /* the title */ var e = document.createElement( "span" ); e.className = "hop-tree-head"; e.innerHTML= title; td2.appendChild( e ); row.appendChild( td2 ) row.value = value; tb.appendChild( row ); table.appendChild( tb ); tree.appendChild( table ); /* the (empty) body */ var body = document.createElement( "div" ); hop_style_set( body, "display", "none" ); body.className = "hop-tree-body"; tree.appendChild( body ); /* the attribute of the tree */ tree.className = "hop-tree"; tree.id = id; tree.parent = parent; tree.table = table; tree.body = body; tree.row = row; tree.level = level; tree.openp = false; tree.cachedp = cachedp; tree.populated = false; tree.last = true; tree.img_join = join; tree.img_folder = folder; tree.src_foldero = fo; tree.src_folderc = fc; tree.icondir = icondir; tree.service = svc; /* append the leaf to the tree */ if( level > 0 ) { hop_tree_add( parent, tree ); tree.selections = []; tree.multiselect = false; tree.onselect = false; tree.onunselect = false; } else { parent.appendChild( tree ); tree.selections = []; tree.multiselect = mu; tree.onselect = ons; tree.onunselect = onus; } /* open the tree if required */ if( openp ) { hop_tree_open( tree ); } return tree;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-tree.js/clean/share/hop-tree.js |
|
row.appendChild( td2 ) | row.appendChild( td2 ); | function hop_make_tree( parent, id, level, svc, title, openp, cachedp, icondir, fo, fc , mu, ons, onus, value ) { var tree = document.createElement( "div" ); /* safety check */ if( parent == null ) { alert( "***INTERNAL ERROR: Illegal empty tree parent -- " + id ); } /* the tree first line */ var table = document.createElement( "table" ); table.setAttribute( "cellpadding", 0 ); table.setAttribute( "cellspacing", 0 ); table.setAttribute( "border", 0 ); table.setAttribute( "rules", "none" ); table.className = "hop-tree"; var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ if( level > 0 ) { hop_push_vlines( icondir, parent, row, level ); } /* the plus/minus icon */ var td1 = document.createElement( "td" ); var join = document.createElement( "img" ); join.src = icondir + "/plus.png"; join.className = "hop-tree-openclose"; join.onclick = function() { hop_toggle_tree( tree ) }; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var folder = document.createElement( "img" ); folder.src = fc; folder.setAttribute( "align", "absbottom" ); folder.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( folder ); row.appendChild( td2 ); /* the title */ var e = document.createElement( "span" ); e.className = "hop-tree-head"; e.innerHTML= title; td2.appendChild( e ); row.appendChild( td2 ) row.value = value; tb.appendChild( row ); table.appendChild( tb ); tree.appendChild( table ); /* the (empty) body */ var body = document.createElement( "div" ); hop_style_set( body, "display", "none" ); body.className = "hop-tree-body"; tree.appendChild( body ); /* the attribute of the tree */ tree.className = "hop-tree"; tree.id = id; tree.parent = parent; tree.table = table; tree.body = body; tree.row = row; tree.level = level; tree.openp = false; tree.cachedp = cachedp; tree.populated = false; tree.last = true; tree.img_join = join; tree.img_folder = folder; tree.src_foldero = fo; tree.src_folderc = fc; tree.icondir = icondir; tree.service = svc; /* append the leaf to the tree */ if( level > 0 ) { hop_tree_add( parent, tree ); tree.selections = []; tree.multiselect = false; tree.onselect = false; tree.onunselect = false; } else { parent.appendChild( tree ); tree.selections = []; tree.multiselect = mu; tree.onselect = ons; tree.onunselect = onus; } /* open the tree if required */ if( openp ) { hop_tree_open( tree ); } return tree;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-tree.js/clean/share/hop-tree.js |
table.setAttribute( "border", 0 ); | function hop_make_tree( parent, id, level, svc, title, openp, cachedp, icondir, fo, fc , mu, ons, onus, value ) { var tree = document.createElement( "div" ); /* safety check */ if( parent == null ) { alert( "***INTERNAL ERROR: Illegal empty tree parent -- " + id ); } /* the tree first line */ var table = document.createElement( "table" ); table.setAttribute( "cellpadding", 0 ); table.setAttribute( "cellspacing", 0 ); table.className = "hop-tree"; var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ if( level > 0 ) { hop_push_vlines( icondir, parent, row, level ); } /* the plus/minus icon */ var td1 = document.createElement( "td" ); td1.setAttribute( "nowrap", "nowrap" ); var join = document.createElement( "img" ); join.className = "hop-tree-openclose"; join.src = icondir + "/plus.png"; join.onclick = function() { hop_toggle_tree( tree ) }; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var folder = document.createElement( "img" ); folder.src = fc; folder.className = "hop-tree"; td2.setAttribute( "nowrap", "nowrap" ); td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( folder ); /* the title */ var e = document.createElement( "span" ); e.className = "hop-tree-head"; e.innerHTML= title; td2.appendChild( e ); row.appendChild( td2 ); row.value = value; tb.appendChild( row ); table.appendChild( tb ); tree.appendChild( table ); /* the (empty) body */ var body = document.createElement( "div" ); node_style_set( body, "display", "none" ); body.className = "hop-tree-body"; tree.appendChild( body ); /* the attribute of the tree */ tree.className = "hop-tree"; tree.id = id; tree.parent = parent; tree.table = table; tree.body = body; tree.row = row; tree.level = level; tree.openp = false; tree.cachedp = cachedp; tree.populated = false; tree.last = true; tree.img_join = join; tree.img_folder = folder; tree.src_foldero = fo; tree.src_folderc = fc; tree.icondir = icondir; tree.service = svc; /* append the leaf to the tree */ if( level > 0 ) { hop_tree_add( parent, tree ); tree.selections = []; tree.multiselect = false; tree.onselect = false; tree.onunselect = false; } else { parent.appendChild( tree ); tree.selections = []; tree.multiselect = mu; tree.onselect = ons; tree.onunselect = onus; } /* open the tree if required */ if( openp ) { hop_tree_open( tree ); } return tree;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/ffddde00f310913083652ce4f995ea73d20795f7/hop-tree.js/clean/share/hop-tree.js |
|
td2.setAttribute( "valign", "top" ); | function hop_make_tree_leaf( tree, content, value, icon ) { var leaf = document.createElement( "table" ); var level = tree.level + 1; leaf.setAttribute( "cellpadding", 0 ); leaf.setAttribute( "cellspacing", 0 ); var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ hop_push_vlines( tree.icondir, tree, row, level ); /* space */ var td1 = document.createElement( "td" ); td1.setAttribute( "nowrap", "nowrap" ); var join = document.createElement( "img" ); join.src = tree.icondir + "/join.png"; join.className = "hop-tree"; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var fimg = document.createElement( "img" ); fimg.src = icon; fimg.setAttribute( "align", "absbottom" ); fimg.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( fimg ); row.appendChild( td2 ); row.value = value; /* the content */ var e = document.createElement( "span" ); e.innerHTML= content; td2.appendChild( e ); row.appendChild( td2 ); tb.appendChild( row ); leaf.appendChild( tb ); /* the attribute of the leaf */ leaf.className = "hop-tree-leaf"; leaf.parent = tree; leaf.row = row; leaf.last = true; leaf.img_join = join; /* append the leaf to the tree */ hop_tree_add( tree, leaf ); return leaf;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6d5257e20d0db537b8a47d939ab613c54c227c9e/hop-tree.js/buggy/share/hop-tree.js |
|
var level = tree.level + 1; | function hop_make_tree_leaf( tree, content, value, icon ) { var leaf = document.createElement( "table" ); var level = tree.level + 1; leaf.setAttribute( "cellpadding", 0 ); leaf.setAttribute( "cellspacing", 0 ); leaf.setAttribute( "border", 0 ); leaf.setAttribute( "rules", "none" ); var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ hop_push_vlines( tree.icondir, tree, row, level ); /* space */ var td1 = document.createElement( "td" ); td1.setAttribute( "nowrap", "nowrap" ); var join = document.createElement( "img" ); join.src = tree.icondir + "/join.png"; join.className = "hop-tree"; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var fimg = document.createElement( "img" ); fimg.src = icon; fimg.setAttribute( "align", "absbottom" ); fimg.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( fimg ); row.appendChild( td2 ); row.value = value; /* the content */ var e = document.createElement( "span" ); e.innerHTML= content; td2.appendChild( e ); row.appendChild( td2 ); tb.appendChild( row ); leaf.appendChild( tb ); /* the attribute of the leaf */ leaf.className = "hop-tree-leaf"; leaf.parent = tree; leaf.row = row; leaf.last = true; leaf.img_join = join; /* append the leaf to the tree */ hop_tree_add( tree, leaf ); return leaf;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-tree.js/clean/share/hop-tree.js |
|
leaf.setAttribute( "border", 0 ); leaf.setAttribute( "rules", "none" ); | leaf.className = "hop-tree-leaf"; | function hop_make_tree_leaf( tree, content, value, icon ) { var leaf = document.createElement( "table" ); var level = tree.level + 1; leaf.setAttribute( "cellpadding", 0 ); leaf.setAttribute( "cellspacing", 0 ); leaf.setAttribute( "border", 0 ); leaf.setAttribute( "rules", "none" ); var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ hop_push_vlines( tree.icondir, tree, row, level ); /* space */ var td1 = document.createElement( "td" ); td1.setAttribute( "nowrap", "nowrap" ); var join = document.createElement( "img" ); join.src = tree.icondir + "/join.png"; join.className = "hop-tree"; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var fimg = document.createElement( "img" ); fimg.src = icon; fimg.setAttribute( "align", "absbottom" ); fimg.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( fimg ); row.appendChild( td2 ); row.value = value; /* the content */ var e = document.createElement( "span" ); e.innerHTML= content; td2.appendChild( e ); row.appendChild( td2 ); tb.appendChild( row ); leaf.appendChild( tb ); /* the attribute of the leaf */ leaf.className = "hop-tree-leaf"; leaf.parent = tree; leaf.row = row; leaf.last = true; leaf.img_join = join; /* append the leaf to the tree */ hop_tree_add( tree, leaf ); return leaf;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-tree.js/clean/share/hop-tree.js |
join.className = "hop-tree"; | function hop_make_tree_leaf( tree, content, value, icon ) { var leaf = document.createElement( "table" ); var level = tree.level + 1; leaf.setAttribute( "cellpadding", 0 ); leaf.setAttribute( "cellspacing", 0 ); leaf.setAttribute( "border", 0 ); leaf.setAttribute( "rules", "none" ); var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ hop_push_vlines( tree.icondir, tree, row, level ); /* space */ var td1 = document.createElement( "td" ); td1.setAttribute( "nowrap", "nowrap" ); var join = document.createElement( "img" ); join.src = tree.icondir + "/join.png"; join.className = "hop-tree"; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var fimg = document.createElement( "img" ); fimg.src = icon; fimg.setAttribute( "align", "absbottom" ); fimg.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( fimg ); row.appendChild( td2 ); row.value = value; /* the content */ var e = document.createElement( "span" ); e.innerHTML= content; td2.appendChild( e ); row.appendChild( td2 ); tb.appendChild( row ); leaf.appendChild( tb ); /* the attribute of the leaf */ leaf.className = "hop-tree-leaf"; leaf.parent = tree; leaf.row = row; leaf.last = true; leaf.img_join = join; /* append the leaf to the tree */ hop_tree_add( tree, leaf ); return leaf;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-tree.js/clean/share/hop-tree.js |
|
fimg.setAttribute( "align", "absbottom" ); | function hop_make_tree_leaf( tree, content, value, icon ) { var leaf = document.createElement( "table" ); var level = tree.level + 1; leaf.setAttribute( "cellpadding", 0 ); leaf.setAttribute( "cellspacing", 0 ); leaf.setAttribute( "border", 0 ); leaf.setAttribute( "rules", "none" ); var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ hop_push_vlines( tree.icondir, tree, row, level ); /* space */ var td1 = document.createElement( "td" ); td1.setAttribute( "nowrap", "nowrap" ); var join = document.createElement( "img" ); join.src = tree.icondir + "/join.png"; join.className = "hop-tree"; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var fimg = document.createElement( "img" ); fimg.src = icon; fimg.setAttribute( "align", "absbottom" ); fimg.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( fimg ); row.appendChild( td2 ); row.value = value; /* the content */ var e = document.createElement( "span" ); e.innerHTML= content; td2.appendChild( e ); row.appendChild( td2 ); tb.appendChild( row ); leaf.appendChild( tb ); /* the attribute of the leaf */ leaf.className = "hop-tree-leaf"; leaf.parent = tree; leaf.row = row; leaf.last = true; leaf.img_join = join; /* append the leaf to the tree */ hop_tree_add( tree, leaf ); return leaf;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-tree.js/clean/share/hop-tree.js |
|
leaf.className = "hop-tree-leaf"; | function hop_make_tree_leaf( tree, content, value, icon ) { var leaf = document.createElement( "table" ); var level = tree.level + 1; leaf.setAttribute( "cellpadding", 0 ); leaf.setAttribute( "cellspacing", 0 ); leaf.setAttribute( "border", 0 ); leaf.setAttribute( "rules", "none" ); var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ hop_push_vlines( tree.icondir, tree, row, level ); /* space */ var td1 = document.createElement( "td" ); td1.setAttribute( "nowrap", "nowrap" ); var join = document.createElement( "img" ); join.src = tree.icondir + "/join.png"; join.className = "hop-tree"; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var fimg = document.createElement( "img" ); fimg.src = icon; fimg.setAttribute( "align", "absbottom" ); fimg.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( fimg ); row.appendChild( td2 ); row.value = value; /* the content */ var e = document.createElement( "span" ); e.innerHTML= content; td2.appendChild( e ); row.appendChild( td2 ); tb.appendChild( row ); leaf.appendChild( tb ); /* the attribute of the leaf */ leaf.className = "hop-tree-leaf"; leaf.parent = tree; leaf.row = row; leaf.last = true; leaf.img_join = join; /* append the leaf to the tree */ hop_tree_add( tree, leaf ); return leaf;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-tree.js/clean/share/hop-tree.js |
|
leaf.setAttribute( "border", 0 ); | function hop_make_tree_leaf( tree, content, value, icon ) { var level = tree.level + 1; var leaf = document.createElement( "table" ); leaf.setAttribute( "cellpadding", 0 ); leaf.setAttribute( "cellspacing", 0 ); leaf.className = "hop-tree-leaf"; var tb = document.createElement( "tbody" ); var row = document.createElement( "tr" ); row.className = "hop-tree-row-unselected"; /* build the left vertical lines */ hop_push_vlines( tree.icondir, tree, row, level ); /* space */ var td1 = document.createElement( "td" ); td1.setAttribute( "nowrap", "nowrap" ); var join = document.createElement( "img" ); join.className = "hop-tree"; join.src = tree.icondir + "/join.png"; td1.appendChild( join ); row.appendChild( td1 ); /* add the folder icon */ var td2 = document.createElement( "td" ); var fimg = document.createElement( "img" ); fimg.src = icon; fimg.className = "hop-tree"; td2.onclick = function() {hop_tree_row_toggle_selected( tree, row, true );} td2.appendChild( fimg ); row.appendChild( td2 ); row.value = value; /* the content */ var e = document.createElement( "span" ); e.innerHTML= content; td2.appendChild( e ); row.appendChild( td2 ); tb.appendChild( row ); leaf.appendChild( tb ); /* the attribute of the leaf */ leaf.parent = tree; leaf.row = row; leaf.last = true; leaf.img_join = join; /* append the leaf to the tree */ hop_tree_add( tree, leaf ); return leaf;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/ffddde00f310913083652ce4f995ea73d20795f7/hop-tree.js/clean/share/hop-tree.js |
|
if( e == undefined ) e = window.event; | function hop_make_vpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var paned, tbody, tr, td1, td2, cursor, div; // the paned paned = document.createElement( "table" ); paned.className = klass; paned.id = id; paned.setAttribute( "onresize", undefined ); paned.parent = parent; paned.width = "100%"; paned.height = "100%"; parent.appendChild( paned ); // the table body tbody = document.createElement( "tbody" ); paned.appendChild( tbody ); // the table row tr = document.createElement( "tr" ); tbody.appendChild( tr ); // the table cells td1 = document.createElement( "td" ); cursor = document.createElement( "td" ); td2 = document.createElement( "td" ); tr.appendChild( td1 ); tr.appendChild( cursor ); tr.appendChild( td2 ); td1.height = "100%"; cursor.height = "100%"; td2.height = "100%"; td1.className = "hop-vpaned-pan"; td2.className = "hop-vpaned-pan"; cursor.className = "hop-paned-cursor"; div = document.createElement( "div" ); div.className = "hop-paned-cursoroff"; cursor.appendChild( div ); // cursor event handling var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_vpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { div.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); hop_stop_propagation( e ); } // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.td1 = td1; paned.td2 = td2; paned.cursor = cursor; td1.appendChild( pan1 ); td2.appendChild( pan2 ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.fraction = -1; hop_vpaned_fraction_set( paned, fraction ); return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
|
cursor.onmouseover = function( e ) { div.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { div.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { | var mousedown = function( e ) { | function hop_make_vpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var paned, tbody, tr, td1, td2, cursor, div; // the paned paned = document.createElement( "table" ); paned.className = klass; paned.id = id; paned.setAttribute( "onresize", undefined ); paned.parent = parent; paned.width = "100%"; paned.height = "100%"; parent.appendChild( paned ); // the table body tbody = document.createElement( "tbody" ); paned.appendChild( tbody ); // the table row tr = document.createElement( "tr" ); tbody.appendChild( tr ); // the table cells td1 = document.createElement( "td" ); cursor = document.createElement( "td" ); td2 = document.createElement( "td" ); tr.appendChild( td1 ); tr.appendChild( cursor ); tr.appendChild( td2 ); td1.height = "100%"; cursor.height = "100%"; td2.height = "100%"; td1.className = "hop-vpaned-pan"; td2.className = "hop-vpaned-pan"; cursor.className = "hop-paned-cursor"; div = document.createElement( "div" ); div.className = "hop-paned-cursoroff"; cursor.appendChild( div ); // cursor event handling var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_vpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { div.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); hop_stop_propagation( e ); } // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.td1 = td1; paned.td2 = td2; paned.cursor = cursor; td1.appendChild( pan1 ); td2.appendChild( pan2 ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.fraction = -1; hop_vpaned_fraction_set( paned, fraction ); return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; | hop_style_set( pan1, "visibility", "visible" ); hop_style_set( pan2, "visibility", "visible" ); | function hop_make_vpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var paned, tbody, tr, td1, td2, cursor, div; // the paned paned = document.createElement( "table" ); paned.className = klass; paned.id = id; paned.setAttribute( "onresize", undefined ); paned.parent = parent; paned.width = "100%"; paned.height = "100%"; parent.appendChild( paned ); // the table body tbody = document.createElement( "tbody" ); paned.appendChild( tbody ); // the table row tr = document.createElement( "tr" ); tbody.appendChild( tr ); // the table cells td1 = document.createElement( "td" ); cursor = document.createElement( "td" ); td2 = document.createElement( "td" ); tr.appendChild( td1 ); tr.appendChild( cursor ); tr.appendChild( td2 ); td1.height = "100%"; cursor.height = "100%"; td2.height = "100%"; td1.className = "hop-vpaned-pan"; td2.className = "hop-vpaned-pan"; cursor.className = "hop-paned-cursor"; div = document.createElement( "div" ); div.className = "hop-paned-cursoroff"; cursor.appendChild( div ); // cursor event handling var mousemove = function( e ) { if( e == undefined ) e = window.event; hop_vpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { div.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); hop_stop_propagation( e ); } // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.td1 = td1; paned.td2 = td2; paned.cursor = cursor; td1.appendChild( pan1 ); td2.appendChild( pan2 ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.fraction = -1; hop_vpaned_fraction_set( paned, fraction ); return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
e.preventDefault(); e.stopPropagation(); | hop_stop_propagation( e ); | function hop_make_vpaned( parent, id, klass, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var paned, tbody, tr, td1, td2, cursor, div; // the paned paned = document.createElement( "table" ); paned.className = klass; paned.id = id; paned.setAttribute( "onresize", undefined ); paned.parent = parent; paned.width = "100%"; paned.height = "100%"; parent.appendChild( paned ); // the table body tbody = document.createElement( "tbody" ); paned.appendChild( tbody ); // the table row tr = document.createElement( "tr" ); tbody.appendChild( tr ); // the table cells td1 = document.createElement( "td" ); cursor = document.createElement( "td" ); td2 = document.createElement( "td" ); tr.appendChild( td1 ); tr.appendChild( cursor ); tr.appendChild( td2 ); td1.height = "100%"; cursor.height = "100%"; td2.height = "100%"; td1.className = "hop-vpaned-pan"; td2.className = "hop-vpaned-pan"; cursor.className = "hop-paned-cursor"; div = document.createElement( "div" ); div.className = "hop-paned-cursoroff"; cursor.appendChild( div ); // cursor event handling var mousemove = function( e ) { hop_vpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { hop_remove_event_listener( document, "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { div.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { hop_add_event_listener( document, "mousemove", mousemove, true ); hop_add_event_listener( document, "mouseup", delmousemove, true ); hop_add_event_listener( document, "onblur", delmousemove, true ); e.preventDefault(); e.stopPropagation(); } // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.td1 = td1; paned.td2 = td2; paned.cursor = cursor; td1.appendChild( pan1 ); td2.appendChild( pan2 ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.fraction = -1; hop_vpaned_fraction_set( paned, fraction ); return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-paned.js/buggy/share/hop-paned.js |
e.preventDefault(); e.stopPropagation(); | function hop_make_vpaned( parent, id, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var paned, tbody, tr, td1, td2, cursor, div; // the paned paned = document.createElement( "table" ); paned.className = "hop-vpaned" paned.id = id; paned.onresize = undefined; paned.parent = parent; paned.width = "100%"; paned.height = "100%"; parent.appendChild( paned ); // the table body tbody = document.createElement( "tbody" ); paned.appendChild( tbody ); // the table row tr = document.createElement( "tr" ); tbody.appendChild( tr ); // the table cells td1 = document.createElement( "td" ); cursor = document.createElement( "td" ); td2 = document.createElement( "td" ); tr.appendChild( td1 ); tr.appendChild( cursor ); tr.appendChild( td2 ); td1.height = "100%"; cursor.height = "100%"; td2.height = "100%"; td1.className = "hop-vpaned-pan"; td2.className = "hop-vpaned-pan"; cursor.className = "hop-paned-cursor"; div = document.createElement( "div" ); div.className = "hop-paned-cursoroff"; cursor.appendChild( div ); // cursor event handling var mousemove = function( e ) { hop_vpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { document.removeEventListener( "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { div.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { document.addEventListener( "mousemove", mousemove, true ); document.addEventListener( "mouseup", delmousemove, true ); document.addEventListener( "onblur", delmousemove, true ); } // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.td1 = td1; paned.td2 = td2; paned.cursor = cursor; td1.appendChild( pan1 ); td2.appendChild( pan2 ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.fraction = -1; hop_vpaned_fraction_set( paned, fraction ); return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/26edb05e4c0d69806e96596c555502f4a0e8d9d7/hop-paned.js/buggy/share/hop-paned.js |
|
var paned, tr, td1, td2, cursor, div; | var paned, tbody, tr, td1, td2, cursor, div; | function hop_make_vpaned( parent, id, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var paned, tr, td1, td2, cursor, div; // the paned paned = document.createElement( "table" ); paned.className = "hop-vpaned" paned.id = id; paned.onresize = undefined; paned.parent = parent; paned.width = "100%"; paned.height = "100%"; parent.appendChild( paned ); // the table row tr = document.createElement( "tr" ); paned.appendChild( tr ); // the table cells td1 = document.createElement( "td" ); cursor = document.createElement( "td" ); td2 = document.createElement( "td" ); tr.appendChild( td1 ); tr.appendChild( cursor ); tr.appendChild( td2 ); td1.height = "100%"; cursor.height = "100%"; td2.height = "100%"; td1.className = "hop-vpaned-pan"; td2.className = "hop-vpaned-pan"; cursor.className = "hop-paned-cursor"; div = document.createElement( "div" ); div.className = "hop-paned-cursoroff"; cursor.appendChild( div ); // cursor event handling var mousemove = function( e ) { hop_vpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { document.removeEventListener( "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { div.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { document.addEventListener( "mousemove", mousemove, true ); document.addEventListener( "mouseup", delmousemove, true ); document.addEventListener( "onblur", delmousemove, true ); } // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.td1 = td1; paned.td2 = td2; paned.cursor = cursor; td1.appendChild( pan1 ); td2.appendChild( pan2 ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.fraction = -1; hop_vpaned_fraction_set( paned, fraction ); return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/737cbaf83d84c17cd17f1c4c7d6d6aaf1da87b7a/hop-paned.js/buggy/share/hop-paned.js |
paned.appendChild( tr ); | tbody.appendChild( tr ); | function hop_make_vpaned( parent, id, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var paned, tr, td1, td2, cursor, div; // the paned paned = document.createElement( "table" ); paned.className = "hop-vpaned" paned.id = id; paned.onresize = undefined; paned.parent = parent; paned.width = "100%"; paned.height = "100%"; parent.appendChild( paned ); // the table row tr = document.createElement( "tr" ); paned.appendChild( tr ); // the table cells td1 = document.createElement( "td" ); cursor = document.createElement( "td" ); td2 = document.createElement( "td" ); tr.appendChild( td1 ); tr.appendChild( cursor ); tr.appendChild( td2 ); td1.height = "100%"; cursor.height = "100%"; td2.height = "100%"; td1.className = "hop-vpaned-pan"; td2.className = "hop-vpaned-pan"; cursor.className = "hop-paned-cursor"; div = document.createElement( "div" ); div.className = "hop-paned-cursoroff"; cursor.appendChild( div ); // cursor event handling var mousemove = function( e ) { hop_vpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { document.removeEventListener( "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { div.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { document.addEventListener( "mousemove", mousemove, true ); document.addEventListener( "mouseup", delmousemove, true ); document.addEventListener( "onblur", delmousemove, true ); } // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.td1 = td1; paned.td2 = td2; paned.cursor = cursor; td1.appendChild( pan1 ); td2.appendChild( pan2 ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.fraction = -1; hop_vpaned_fraction_set( paned, fraction ); return paned;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/737cbaf83d84c17cd17f1c4c7d6d6aaf1da87b7a/hop-paned.js/buggy/share/hop-paned.js |
function hop_node_eval( node ) { | function hop_node_eval( node, text ) { | function hop_node_eval( node ) { var res; var scripts = node.getElementsByTagName( "script" ); for ( var j = 0; j < scripts.length; j++ ) { if( scripts[ j ].childNodes.length > 0 ) { res = eval( scripts[ j ].childNodes[ 0 ].nodeValue ); } } return res;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/0f13875c170bf295e968ddf1b168f1b43c73a3ad/hop.js/clean/share/hop.js |
for ( var j = 0; j < scripts.length; j++ ) { if( scripts[ j ].childNodes.length > 0 ) { res = eval( scripts[ j ].childNodes[ 0 ].nodeValue ); | if( scripts.length > 0 ) { for ( var j = 0; j < scripts.length; j++ ) { if( scripts[ j ].childNodes.length > 0 ) { res = eval( scripts[ j ].childNodes[ 0 ].nodeValue ); } } } else { var script = text.match( /<script[^>]*>/i ); if( script != null ) { /* I don't why yet, IE 7 does not include SCRIPT nodes */ /* in the resulting node! */ var start = script.index + script[ 0 ].length; var end = text.search( /<[/]script>/i ); if( (end != null) && (end > start) ) { res = eval( text.substr( start, end - start ) ); } | function hop_node_eval( node ) { var res; var scripts = node.getElementsByTagName( "script" ); for ( var j = 0; j < scripts.length; j++ ) { if( scripts[ j ].childNodes.length > 0 ) { res = eval( scripts[ j ].childNodes[ 0 ].nodeValue ); } } return res;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/0f13875c170bf295e968ddf1b168f1b43c73a3ad/hop.js/clean/share/hop.js |
var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) | var np = hop_isHTMLElement( notepad ) | function hop_notepad_inline( notepad, tab ) { var found = 0; var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( j == found ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-notepad.js/buggy/share/hop-notepad.js |
var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) | var ta = hop_isHTMLElement( tab ) | function hop_notepad_inline( notepad, tab ) { var found = 0; var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( j == found ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-notepad.js/buggy/share/hop-notepad.js |
var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); | var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); | function hop_notepad_inline( notepad, tab ) { var found = 0; var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( j == found ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/58470c250b2dc3f6e6c18ee5d1d84bb163d47284/hop-notepad.js/clean/share/hop-notepad.js |
function hop_notepad_inline( tab, ghost, notepad ) { var np = document.getElementById( notepad ); | function hop_notepad_inline( notepad, tab ) { var found = 0; var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); var i; | function hop_notepad_inline( tab, ghost, notepad ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == ghost ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-notepad.js/clean/share/hop-notepad.js |
if( c2.id == tab ) { | if( c2 == ta ) { | function hop_notepad_inline( tab, ghost, notepad ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == ghost ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-notepad.js/clean/share/hop-notepad.js |
if( c2.id == ghost ) { | if( j == found ) { | function hop_notepad_inline( tab, ghost, notepad ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == ghost ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-notepad.js/clean/share/hop-notepad.js |
var tabs = np.childNodes[ 1 ]; var bodies = np.childNodes[ 2 ]; | var tabs = null; var bodies = null; var i; for( i = 0; i < np.childNodes.length; i++ ) { if( np.childNodes[ i ].className == "hop-notepad-body" ) { bodies = np.childNodes[ i ]; if( tabs != null ) break; } if( np.childNodes[ i ].className == "hop-notepad-tabs" ) { tabs = np.childNodes[ i ]; if( bodies !=null ) break; } } | function hop_notepad_inner_select( np, to ) { var tabs = np.childNodes[ 1 ]; var bodies = np.childNodes[ 2 ]; /* at creation time, tab 0 is active */ if( np.active_tab == undefined ) np.active_tab = 0; /* invoke remote tab */ if( tabs.childNodes[ to ].lang == "delay" ) { hop( np.onkeyup()( to ), function( http ) { hop_replace_inner( bodies.childNodes[ to ] )( http ); hop_notepad_inner_toggle( np, to, tabs, bodies ); } ); } else { hop_notepad_inner_toggle( np, to, tabs, bodies ); }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a7285808c8ef0ca287654227a284151a9ce63dd8/hop-notepad.js/buggy/share/hop-notepad.js |
tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive"; | tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-notepad-nptab"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/fbea5e418d46bffe42d74842ad9995a73e5f01e1/hop-notepad.js/buggy/share/hop-notepad.js |
tabs.childNodes[ to ].className = "hop-nptab-active"; | tabs.childNodes[ to ].className = "hop-nptab-active hop-notepad-nptab"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/fbea5e418d46bffe42d74842ad9995a73e5f01e1/hop-notepad.js/buggy/share/hop-notepad.js |
tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-nptab"; | tabs.childNodes[ np.active_tab ].className = " hop-nptab hop-nptab-inactive"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-nptab"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active hop-nptab"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-notepad.js/clean/share/hop-notepad.js |
tabs.childNodes[ to ].className = "hop-nptab-active hop-nptab"; | tabs.childNodes[ to ].className = "hop-nptab hop-nptab-active"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-nptab"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active hop-nptab"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-notepad.js/clean/share/hop-notepad.js |
tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-notepad-nptab"; | tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-nptab"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-notepad-nptab"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active hop-notepad-nptab"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/50d23244ae8f05017ea74699cae93b1b1fcadba6/hop-notepad.js/buggy/share/hop-notepad.js |
tabs.childNodes[ to ].className = "hop-nptab-active hop-notepad-nptab"; | tabs.childNodes[ to ].className = "hop-nptab-active hop-nptab"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-notepad-nptab"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active hop-notepad-nptab"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/50d23244ae8f05017ea74699cae93b1b1fcadba6/hop-notepad.js/buggy/share/hop-notepad.js |
var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) | var np = hop_isHTMLElement( notepad ) | function hop_notepad_remote( service, notepad, tab ) { var success = function( http ) { if( http.responseText != null ) { var found = 0; var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } if( !notepad.remote_service ) notepad.remote_service = service; hop( service( tab ), success );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-notepad.js/buggy/share/hop-notepad.js |
var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) | var ta = hop_isHTMLElement( tab ) | function hop_notepad_remote( service, notepad, tab ) { var success = function( http ) { if( http.responseText != null ) { var found = 0; var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } if( !notepad.remote_service ) notepad.remote_service = service; hop( service( tab ), success );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-notepad.js/buggy/share/hop-notepad.js |
var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); | var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); | function hop_notepad_remote( service, notepad, tab ) { var success = function( http ) { if( http.responseText != null ) { var found = 0; var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } if( !notepad.remote_service ) notepad.remote_service = service; hop( service( tab ), success );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/58470c250b2dc3f6e6c18ee5d1d84bb163d47284/hop-notepad.js/clean/share/hop-notepad.js |
function hop_notepad_remote( service, tab, ghost, notepad ) { | function hop_notepad_remote( service, notepad, tab ) { | function hop_notepad_remote( service, tab, ghost, notepad ) { var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } hop( service( tab ), success);} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-notepad.js/clean/share/hop-notepad.js |
var np = document.getElementById( notepad ); | var found = 0; var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); var i; | function hop_notepad_remote( service, tab, ghost, notepad ) { var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } hop( service( tab ), success);} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-notepad.js/clean/share/hop-notepad.js |
if( c2.id == tab ) { | if( c2 = ta ) { | function hop_notepad_remote( service, tab, ghost, notepad ) { var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } hop( service( tab ), success);} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-notepad.js/clean/share/hop-notepad.js |
hop( service( tab ), success); | if( !notepad.remote_service ) notepad.remote_service = service; hop( service( tab ), success ); | function hop_notepad_remote( service, tab, ghost, notepad ) { var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } hop( service( tab ), success);} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-notepad.js/clean/share/hop-notepad.js |
var notepad = ((id1 instanceof HTMLElement) || (id1 instanceof Object && id1.propertyIsEnumerable( "innerHTML" ))) | var notepad = hop_isHTMLElement( id1 ) | function hop_notepad_select( id1, id2 ) { var notepad = ((id1 instanceof HTMLElement) || (id1 instanceof Object && id1.propertyIsEnumerable( "innerHTML" ))) ? id1 : document.getElementById( id1 ); var tab = ((id2 instanceof HTMLElement) || (id2 instanceof Object && id2.propertyIsEnumerable( "innerHTML" ))) ? id2 : document.getElementById( id2 ); if( notepad.remote_service != null ) { hop_notepad_remote( notepad.remote_service, notepad, tab ); } else { hop_notepad_inline( notepad, tab ); }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-notepad.js/buggy/share/hop-notepad.js |
var tab = ((id2 instanceof HTMLElement) || (id2 instanceof Object && id2.propertyIsEnumerable( "innerHTML" ))) | var tab = hop_isHTMLElement( id2 ) | function hop_notepad_select( id1, id2 ) { var notepad = ((id1 instanceof HTMLElement) || (id1 instanceof Object && id1.propertyIsEnumerable( "innerHTML" ))) ? id1 : document.getElementById( id1 ); var tab = ((id2 instanceof HTMLElement) || (id2 instanceof Object && id2.propertyIsEnumerable( "innerHTML" ))) ? id2 : document.getElementById( id2 ); if( notepad.remote_service != null ) { hop_notepad_remote( notepad.remote_service, notepad, tab ); } else { hop_notepad_inline( notepad, tab ); }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-notepad.js/buggy/share/hop-notepad.js |
var notepad = (id1 instanceof HTMLElement) ? id1 : document.getElementById( id1 ); var tab = (id2 instanceof HTMLElement) ? id2 : document.getElementById( id2 ); | var notepad = ((id1 instanceof HTMLElement) || (id1 instanceof Object && id1.propertyIsEnumerable( "innerHTML" ))) ? id1 : document.getElementById( id1 ); var tab = ((id2 instanceof HTMLElement) || (id2 instanceof Object && id2.propertyIsEnumerable( "innerHTML" ))) ? id2 : document.getElementById( id2 ); | function hop_notepad_select( id1, id2 ) { var notepad = (id1 instanceof HTMLElement) ? id1 : document.getElementById( id1 ); var tab = (id2 instanceof HTMLElement) ? id2 : document.getElementById( id2 ); if( notepad.remote_service != null ) { hop_notepad_remote( notepad.remote_service, notepad, tab ); } else { hop_notepad_inline( notepad, tab ); }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/58470c250b2dc3f6e6c18ee5d1d84bb163d47284/hop-notepad.js/clean/share/hop-notepad.js |
if (win.inFrame) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; } | el.style.opacity= 0.8; | function hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { el.style.overflow = "auto"; if (win.inFrame) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; } } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } function end_resize(w, h) { var sz = compute_height() + "px"; el.style.height = sz; if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; } } /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/79884d39bb3ebe81f6eb6fd4fc692d536ca815da/hop-window.js/clean/share/hop-window.js |
var sz = compute_height() + "px"; | var id = (win.inFrame) ? iframe : around; var tmp = document.getElementById(id); var sz = compute_height() + "px"; tmp.style.display= "block"; tmp.style.height = sz; | function hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { el.style.overflow = "auto"; if (win.inFrame) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; } } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } function end_resize(w, h) { var sz = compute_height() + "px"; el.style.height = sz; if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; } } /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/79884d39bb3ebe81f6eb6fd4fc692d536ca815da/hop-window.js/clean/share/hop-window.js |
if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; } | el.style.opacity= 1; | function hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { el.style.overflow = "auto"; if (win.inFrame) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; } } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } function end_resize(w, h) { var sz = compute_height() + "px"; el.style.height = sz; if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; } } /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/79884d39bb3ebe81f6eb6fd4fc692d536ca815da/hop-window.js/clean/share/hop-window.js |
el.innerHTML = http.responseText; | document.getElementById(around).innerHTML = http.responseText; | function hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { el.style.overflow = "auto"; if (win.inFrame) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; } } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } function end_resize(w, h) { var sz = compute_height() + "px"; el.style.height = sz; if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; } } /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/79884d39bb3ebe81f6eb6fd4fc692d536ca815da/hop-window.js/clean/share/hop-window.js |
"src='" + "http: | "src='" + serv + "' " + | function hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++Drag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { var iframe = id + "-frame"; el.style.setProperty("margin", "0", ""); el.style.setProperty("padding", "0", ""); win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; el.style.offsetHeight = 100; } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; el.style.opacity= 1; } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + "http://www.wanadoo.fr" + "' " + "' height='" + compute_height() + "'></iframe>"; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/3bdb5be9dddb9a00b7be44f687f4976f503e2cdc/webconf.js/buggy/weblets/webconf/webconf.js |
if (serv == null) { change_style(); return } | function hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { var iframe = id + "-frame"; el.style.setProperty("margin", "0", ""); el.style.setProperty("padding", "0", ""); win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); el.style.opacity= 0.8; } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; el.style.opacity= 1; } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/3096f4438a1f8bb9ec65f0d89f78cb574d23c9c9/hop-window.js/buggy/share/hop-window.js |
|
function hop_open_float_window(serv, e, x, y) | function hop_open_float_window(serv, e, x, y, inframe) | function hop_open_float_window(serv, e, x, y){ var win = (e instanceof HTMLDivElement) ? e : document.getElementById(e); var id = (e instanceof HTMLDivElement) ? e.id : e; var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var around = id + "-around"; var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { var id = (win.inFrame) ? iframe : around; document.getElementById(id).style.display= "none"; el.style.overflow = "auto"; el.style.opacity= 0.8; } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } function end_resize(w, h) { var id = (win.inFrame) ? iframe : around; var tmp = document.getElementById(id); var sz = compute_height() + "px"; tmp.style.display= "block"; tmp.style.height = sz; el.style.height = sz; el.style.opacity= 1; } /* initialize the window */ hop_float_window_init(id, true); /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { document.getElementById(around).innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/44a7a4372c75f39f08ae0e260a69f5a783412465/hop-window.js/buggy/share/hop-window.js |
hop_float_window_init(id, true); | hop_float_window_init(id, inframe); | function hop_open_float_window(serv, e, x, y){ var win = (e instanceof HTMLDivElement) ? e : document.getElementById(e); var id = (e instanceof HTMLDivElement) ? e.id : e; var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var around = id + "-around"; var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { var id = (win.inFrame) ? iframe : around; document.getElementById(id).style.display= "none"; el.style.overflow = "auto"; el.style.opacity= 0.8; } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } function end_resize(w, h) { var id = (win.inFrame) ? iframe : around; var tmp = document.getElementById(id); var sz = compute_height() + "px"; tmp.style.display= "block"; tmp.style.height = sz; el.style.height = sz; el.style.opacity= 1; } /* initialize the window */ hop_float_window_init(id, true); /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { document.getElementById(around).innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/44a7a4372c75f39f08ae0e260a69f5a783412465/hop-window.js/buggy/share/hop-window.js |
hop(serv, function( http ) { var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); win.style.display = "block"; Drag.init(h, win); win.style.left = x; win.style.top = y; win.style.zIndex = ++Drag.zIndex; win.onDragStart = function(x, y) { Drag.opacity = win.style.opacity; win.style.zIndex = ++Drag.zIndex; win.style.opacity = 0.4; } win.onDragEnd = function(x, y) { win.style.opacity = Drag.opacity; } } }); | var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++Drag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { var iframe = id + "-frame"; el.style.setProperty("margin", "0", ""); el.style.setProperty("padding", "0", ""); win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; el.style.offsetHeight = 100; } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; el.style.opacity= 1; } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + "http: "' height='" + compute_height() + "'></iframe>"; } | function hop_open_float_window(serv, id, x, y){ hop(serv, function( http ) { var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); win.style.display = "block"; Drag.init(h, win); win.style.left = x; win.style.top = y; win.style.zIndex = ++Drag.zIndex; win.onDragStart = function(x, y) { Drag.opacity = win.style.opacity; win.style.zIndex = ++Drag.zIndex; win.style.opacity = 0.4; } win.onDragEnd = function(x, y) { win.style.opacity = Drag.opacity; } } });} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/f407cff01a2b1afdae1bacfe7c1673bba412f8e8/webconf.js/clean/weblets/webconf/webconf.js |
for( var p in window ) { | for( var p in obj ) { | function hop_properties_to_string( obj ) { var res = ""; var i = 0; for( var p in window ) { if( i == 10 ) { res += p + "\n"; i = 0; } else { i++; res += p + " "; } } return res;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/cd1d820b4143767335607e576824f8a32124e681/hop-autoconf.js/buggy/share/hop-autoconf.js |
return obj.detachEvent( "on" + event, proc ); | var i = "on" + event + "hdl"; var proc = obj[ i ][ proc ]; if( proc != undefined ) { obj[ i ][ proc ] = undefined; return obj.detachEvent( "on" + event, proc ); } | hop_remove_event_listener = function( obj, event, proc, capture ) { return obj.detachEvent( "on" + event, proc ); } | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-autoconf.js/clean/share/hop-autoconf.js |
if( hop_request_env_string == null ) { | if( (hop_request_env_string == null) || (hop_request_env_string.length == 0) ) { | function hop_serialize_request_env() { if( hop_request_env_string == null ) { var tmp = null; for( var p in hop_request_env ) { if( typeof hop_request_env[ p ] != "function" ) { tmp = sc_cons( sc_cons( p, hop_request_env[ p ] ) ); } } hop_request_env_string = hop_serialize( tmp ); } return hop_request_env_string;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/1b79146d26f8e224da67c34807daa7a43651d476/hop.js/buggy/share/hop.js |
return service; | return service + "?hop-encoding=hop"; | function hop_service_url( service, formals, args ) { var len = formals.length; if( len == 0 ) { return service; } else { var url = service + "?hop-encoding=hop"; var i; if( (args.length == 1) && (HTMLFormElement != undefined) && (args[ 0 ] instanceof HTMLFormElement) ) { var els = args[ 0 ].elements; for( i = 0; i < els.length; i++ ) { if( els[ i ].type == "checkbox" ) { var val = els[ i ].checked ? els[ i ].value : false; url += "&" + els[ i ].name + "=" + hop_serialize( val ); } else { if( els[ i ].type == "radio" ) { if( els[ i ].checked ) { url += "&" + els[ i ].name + "=" + hop_serialize( els[ i ].value ); } } else { url += "&" + els[ i ].name + "=" + hop_serialize( els[ i ].value ); } } } return url; } else { for( i = 0; i < len; i++ ) { url += "&" + formals[ i ] + "=" + hop_serialize( args[ i ] ); } return url; } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/72dc2674accfb13db2104f6667872cff1ba3ab10/hop.js/buggy/share/hop.js |
val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) | /* val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) */ /* * (slider.max - slider.min); */ val = ((hop_event_mouse_x( e ) - hop_element_x( slider )) / slider.offsetWidth) | function hop_slider_mousemove( e, slider ) { var val; val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * (slider.max - slider.min); hop_slider_value_set( slider, Math.round( val ) + slider.min );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/c1573df9e324193c5522cd1c1d4885de3faa3930/hop-slider.js/clean/share/hop-slider.js |
function hop_sorttable_sort( lnk ) { var td = lnk.parentNode; var arrow = lnk.lastChild; var column = td.cellIndex; var table = get_parent( td, 'TABLE' ); if( table.rows.length <= 1 ) return; SORT_COLUMN_INDEX = column; var newRows = new Array(); var itm = hop_sorttable_getInnerText( table.rows[1].cells[ column ] ); for( j = 1; j < table.rows.length; j++ ) { var o = new Object(); var l = table.rows[ j ].cells[ column ].getAttribute( "lang" ); if( typeof l == "string" ) { o.key = l; itm = false; } else { o.key = hop_sorttable_getInnerText( table.rows[ j ].cells[ column ] ); } o.val = table.rows[ j ]; newRows[ j - 1 ] = o; } if( !itm ) { newRows.sort( hop_sorttable_sort_default ); } else { if( itm.match(/^[\d\.]+$/) ) { newRows.sort( hop_sorttable_sort_numeric ); } else { newRows.sort( hop_sorttable_sort_default ); } } if( lnk.getAttribute( "sortdir" ) != 'down' ) { newRows.reverse(); arrow.innerHTML = "↑"; lnk.setAttribute( 'sortdir', 'down' ); } else { arrow.innerHTML = "↓"; lnk.setAttribute( 'sortdir', 'up' ); } for( i = 0; i < newRows.length; i++ ) { table.tBodies[ 0 ].appendChild( newRows[ i ].val ); }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/50d23244ae8f05017ea74699cae93b1b1fcadba6/hop-sorttable.js/buggy/share/hop-sorttable.js |
||
if( typeof l == "string" ) { | if( (typeof l == "string") && (l != '') ) { | function hop_sorttable_sort( lnk ) { var td = lnk.parentNode; var arrow = lnk.lastChild; var column = td.cellIndex; var table = get_parent( td, 'TABLE' ); if( table.rows.length <= 1 ) return; SORT_COLUMN_INDEX = column; var newRows = new Array(); var itm = hop_sorttable_getInnerText( table.rows[1].cells[ column ] ); for( j = 1; j < table.rows.length; j++ ) { var o = new Object(); var l = table.rows[ j ].cells[ column ].getAttribute( "lang" ); if( typeof l == "string" ) { o.key = l; itm = false; } else { o.key = hop_sorttable_getInnerText( table.rows[ j ].cells[ column ] ); } o.val = table.rows[ j ]; newRows[ j - 1 ] = o; } if( !itm ) { newRows.sort( hop_sorttable_sort_default ); } else { if( itm.match(/^[\d\.]+$/) ) { newRows.sort( hop_sorttable_sort_numeric ); } else { newRows.sort( hop_sorttable_sort_default ); } } if( lnk.getAttribute( "sortdir" ) != 'down' ) { newRows.reverse(); arrow.innerHTML = "↑"; lnk.setAttribute( 'sortdir', 'down' ); } else { arrow.innerHTML = "↓"; lnk.setAttribute( 'sortdir', 'up' ); } for( i = 0; i < newRows.length; i++ ) { table.tBodies[ 0 ].appendChild( newRows[ i ].val ); }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/50d23244ae8f05017ea74699cae93b1b1fcadba6/hop-sorttable.js/buggy/share/hop-sorttable.js |
function hop_sorttable_sort( lnk ) { var td = lnk.parentNode; var arrow = lnk.lastChild; var column = td.cellIndex; var table = get_parent( td, 'TABLE' ); if( table.rows.length <= 1 ) return; SORT_COLUMN_INDEX = column; var newRows = new Array(); var itm = hop_sorttable_getInnerText( table.rows[1].cells[ column ] ); for( j = 1; j < table.rows.length; j++ ) { var o = new Object(); var l = table.rows[ j ].cells[ column ].getAttribute( "lang" ); if( typeof l == "string" ) { o.key = l; itm = false; } else { o.key = hop_sorttable_getInnerText( table.rows[ j ].cells[ column ] ); } o.val = table.rows[ j ]; newRows[ j - 1 ] = o; } if( !itm ) { newRows.sort( hop_sorttable_sort_default ); } else { if( itm.match(/^[\d\.]+$/) ) { newRows.sort( hop_sorttable_sort_numeric ); } else { newRows.sort( hop_sorttable_sort_default ); } } if( lnk.getAttribute( "sortdir" ) != 'down' ) { newRows.reverse(); arrow.innerHTML = "↑"; lnk.setAttribute( 'sortdir', 'down' ); } else { arrow.innerHTML = "↓"; lnk.setAttribute( 'sortdir', 'up' ); } for( i = 0; i < newRows.length; i++ ) { table.tBodies[ 0 ].appendChild( newRows[ i ].val ); }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/50d23244ae8f05017ea74699cae93b1b1fcadba6/hop-sorttable.js/buggy/share/hop-sorttable.js |
||
function hop_sorttable_sort( lnk ) { var td = lnk.parentNode; var arrow = lnk.lastChild; var column = td.cellIndex; var table = get_parent( td, 'TABLE' ); if( table.rows.length <= 1 ) return; SORT_COLUMN_INDEX = column; var newRows = new Array(); var itm = hop_sorttable_getInnerText( table.rows[1].cells[ column ] ); for( j = 1; j < table.rows.length; j++ ) { var o = new Object(); var l = table.rows[ j ].cells[ column ].getAttribute( "lang" ); if( typeof l == "string" ) { o.key = l; itm = false; } else { o.key = hop_sorttable_getInnerText( table.rows[ j ].cells[ column ] ); } o.val = table.rows[ j ]; newRows[ j - 1 ] = o; } if( !itm ) { newRows.sort( hop_sorttable_sort_default ); } else { if( itm.match(/^[\d\.]+$/) ) { newRows.sort( hop_sorttable_sort_numeric ); } else { newRows.sort( hop_sorttable_sort_default ); } } if( lnk.getAttribute( "sortdir" ) != 'down' ) { newRows.reverse(); arrow.innerHTML = "↑"; lnk.setAttribute( 'sortdir', 'down' ); } else { arrow.innerHTML = "↓"; lnk.setAttribute( 'sortdir', 'up' ); } for( i = 0; i < newRows.length; i++ ) { table.tBodies[ 0 ].appendChild( newRows[ i ].val ); }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/50d23244ae8f05017ea74699cae93b1b1fcadba6/hop-sorttable.js/buggy/share/hop-sorttable.js |
||
table.arrow = arrow; | function hop_sorttable_sort( lnk ) { var td = lnk.parentNode; var arrow = lnk.lastChild; var column = td.cellIndex; var table = get_parent( td, 'TABLE' ); if( table.rows.length <= 1 ) return; SORT_COLUMN_INDEX = column; var newRows = new Array(); var itm = hop_sorttable_getInnerText( table.rows[1].cells[ column ] ); for( j = 1; j < table.rows.length; j++ ) { var o = new Object(); var l = table.rows[ j ].cells[ column ].getAttribute( "lang" ); if( (typeof l == "string") && (l != '') ) { o.key = l; itm = false; } else { o.key = hop_sorttable_getInnerText( table.rows[ j ].cells[ column ] ); } o.val = table.rows[ j ]; newRows[ j - 1 ] = o; } if( !itm ) { newRows.sort( hop_sorttable_sort_default ); } else { if( itm.match(/^[\d\.]+$/) ) { newRows.sort( hop_sorttable_sort_numeric ); } else { newRows.sort( hop_sorttable_sort_default ); } } if( lnk.getAttribute( "sortdir" ) != 'down' ) { newRows.reverse(); arrow.innerHTML = "↑"; lnk.setAttribute( 'sortdir', 'down' ); } else { arrow.innerHTML = "↓"; lnk.setAttribute( 'sortdir', 'up' ); } for( i = 0; i < newRows.length; i++ ) { table.tBodies[ 0 ].appendChild( newRows[ i ].val ); }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/b0437a3b760258723ea3639dedeb8983f5e9c448/hop-sorttable.js/clean/share/hop-sorttable.js |
|
hop_stop_propagation = function( event ) { event.cancelBubble = true; | hop_stop_propagation = function( event, def ) { if( !def ) event.cancelBubble = true; | hop_stop_propagation = function( event ) { event.cancelBubble = true; event.returnValue = false; } | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a5885c4f387ca910d1165311dda90ff87b269b79/hop-autoconf.js/clean/share/hop-autoconf.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.