rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 13
136k
| meta
stringlengths 132
347
|
---|---|---|---|
return hop_serialize_word( len ) + res; | return hop_serialize_word( len + 1 ) + res + hop_serialize( l ); | function hop_bigloo_serialize_pair( l ) { var res = ""; var len = 0; while (sc_isPair( l ) ) { res += hop_serialize( l.car ); l = l.cdr; len++; } if( l == null ) { return hop_serialize_word( len + 1 ) + res + "."; } else { return hop_serialize_word( len ) + res; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/74fb6cdf2d81e57ca8d0a28bd4b72a55b26ddf16/runtime.js/clean/scheme2js/runtime/runtime.js |
pre.className = "hop_debug"; | pre.className = "hop_debug_pre"; | function hop_debug_get_container() { var pre = document.getElementById( "hop_debug_content" ); var win = document.getElementById( "hop_debug" ); if( pre == null ) { var div = document.createElement( "div" ); pre = document.createElement( "pre" ); div.id = "hop_debug_div"; div.className = "hop_debug"; pre.id = "hop_debug_content"; pre.className = "hop_debug"; div.innerHTML = "<DIV class='hop_debug_reset'><BUTTON onclick='hop_debug_reset()'>Reset</BUTTON></DIV>"; div.appendChild( pre ); win = hop_iwindow_open( "hop_debug", div, "hop_debug", false, 320, 200 ); } else { win.style.display = "block"; } return pre;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-debug.js/buggy/share/hop-debug.js |
win = hop_iwindow_open( "hop_debug", div, "hop_debug", false, 320, 200 ); | win = hop_iwindow_open( "hop_debug", div, "hop_debug", false, 320, 200, 10, 10 ); | function hop_debug_get_container() { var pre = document.getElementById( "hop_debug_content" ); var win = document.getElementById( "hop_debug" ); if( pre == null ) { var div = document.createElement( "div" ); pre = document.createElement( "pre" ); div.id = "hop_debug_div"; div.className = "hop_debug"; pre.id = "hop_debug_content"; pre.className = "hop_debug"; div.innerHTML = "<DIV class='hop_debug_reset'><BUTTON onclick='hop_debug_reset()'>Reset</BUTTON></DIV>"; div.appendChild( pre ); win = hop_iwindow_open( "hop_debug", div, "hop_debug", false, 320, 200 ); } else { win.style.display = "block"; } return pre;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-debug.js/buggy/share/hop-debug.js |
t = t.replace( /<body[^>]*>/g, "<div style='background: #f7f7f7; font-family: sans serif; -moz-opacity: 0.97'>" ); | t = t.replace( /<body[^>]*>/g, "<div style='background: transparent; font-family: sans serif; -moz-opacity: 0.97'>" ); | function hop_default_failure( http ) { var t = http.responseText; var div = document.getElementById( "hop_default_failure" ); t = t.replace( /<!DOCTYPE[^>]*>/g, "" ); t = t.replace( /<(head|meta|link)[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/(head|meta|link)>/g, "</div>" ); t = t.replace( /<html[^>]*>/g, "<div style='width: 45em; overflow: auto; cursor: pointer;' onclick='document.body.removeChild( document.getElementById( \"hop_default_failure\" ) )' title='Click to hide this message'>" ); t = t.replace( /<\/html>/g, "</div>" ); t = t.replace( /<body[^>]*>/g, "<div style='background: #f7f7f7; font-family: sans serif; -moz-opacity: 0.97'>" ); t = t.replace( /<\/body>/g, "</div>" ); t = t.replace( /</g, "<" ); t = t.replace( />/g, ">" ); t = t.replace( /"/g, "\"" ); if( !div ) { div = document.createElement( "div" ); div.id = "hop_default_failure"; div.style.setProperty( "position", "absolute", "" ); div.style.setProperty( "top", "100", "" ); div.style.setProperty( "z-index", "100", "" ); div.style.setProperty( "width", "100%", "" ); div.style.setProperty( "padding", "0", "" ); div.align = "center"; div.style.setProperty( "background", "transparent", "" ); div.innerHTML = t; document.body.appendChild( div ); } else { div.innerHTML = t; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/dd0e4e8b06166c847d80359a815cefbdebeb0b26/hop.js/buggy/share/hop.js |
t = t.replace( /</g, "<" ); t = t.replace( />/g, ">" ); | /* t = t.replace( /</g, "<" ); */ /* t = t.replace( />/g, ">" ); */ | function hop_default_failure( http ) { var t = http.responseText; var div = document.getElementById( "hop_default_failure" ); t = t.replace( /<!DOCTYPE[^>]*>/g, "" ); t = t.replace( /<head[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/head>/g, "</div>" ); t = t.replace( /<(meta|link)[^>]*>/g, "<span style='display: none'></span>" ); t = t.replace( /<html[^>]*>/g, "<div style='width: 45em; overflow: auto; cursor: pointer;' onclick='document.body.removeChild( document.getElementById( \"hop_default_failure\" ) )' title='Click to hide this message'>" ); t = t.replace( /<\/html>/g, "</div>" ); t = t.replace( /<body[^>]*>/g, "<div style='background: transparent; font-family: sans serif; -moz-opacity: 0.87'>" ); t = t.replace( /<\/body>/g, "</div>" ); t = t.replace( /</g, "<" ); t = t.replace( />/g, ">" ); t = t.replace( /"/g, "\"" ); if( !div ) { div = document.createElement( "div" ); div.id = "hop_default_failure"; div.style.setProperty( "position", "absolute", "" ); div.style.setProperty( "top", "100", "" ); div.style.setProperty( "z-index", "10000", "" ); div.style.setProperty( "width", "100%", "" ); div.style.setProperty( "padding", "0", "" ); div.align = "center"; div.style.setProperty( "background", "transparent", "" ); div.innerHTML = t; document.body.appendChild( div ); } else { div.innerHTML = t; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/c1c9b3f2c928385fad825c46f5852157a7eede6e/hop.js/buggy/share/hop.js |
t = t.replace( /<(head|meta|link)[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/(head|meta|link)>/g, "</div>" ); | t = t.replace( /<head[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/head>/g, "</div>" ); t = t.replace( /<(meta|link)[^>]*>/g, "<span style='display: none'></span>" ); | function hop_default_failure( http ) { var t = http.responseText; var div = document.getElementById( "hop_default_failure" ); t = t.replace( /<!DOCTYPE[^>]*>/g, "" ); t = t.replace( /<(head|meta|link)[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/(head|meta|link)>/g, "</div>" ); t = t.replace( /<html[^>]*>/g, "<div style='width: 45em; overflow: auto; cursor: pointer;' onclick='document.body.removeChild( document.getElementById( \"hop_default_failure\" ) )' title='Click to hide this message'>" ); t = t.replace( /<\/html>/g, "</div>" ); t = t.replace( /<body[^>]*>/g, "<div style='background: transparent; font-family: sans serif; -moz-opacity: 0.87'>" ); t = t.replace( /<\/body>/g, "</div>" ); t = t.replace( /</g, "<" ); t = t.replace( />/g, ">" ); t = t.replace( /"/g, "\"" ); if( !div ) { div = document.createElement( "div" ); div.id = "hop_default_failure"; div.style.setProperty( "position", "absolute", "" ); div.style.setProperty( "top", "100", "" ); div.style.setProperty( "z-index", "100", "" ); div.style.setProperty( "width", "100%", "" ); div.style.setProperty( "padding", "0", "" ); div.align = "center"; div.style.setProperty( "background", "transparent", "" ); div.innerHTML = t; document.body.appendChild( div ); } else { div.innerHTML = t; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/4db3bcf2264bd7748625eae07a25eee0c0f6893c/hop.js/clean/share/hop.js |
function hop_default_failure( http ) { var t = http.responseText; var div = document.getElementById( "hop_default_failure" ); t = t.replace( /<!DOCTYPE[^>]*>/g, "" ); t = t.replace( /<(head|meta|link)[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/(head|meta|link)>/g, "</div>" ); t = t.replace( /<html[^>]*>/g, "<div style='width: 45em; overflow: auto; cursor: pointer;' onclick='document.body.removeChild( document.getElementById( \"hop_default_failure\" ) )' title='Click to hide this message'>" ); t = t.replace( /<\/html>/g, "</div>" ); t = t.replace( /<body[^>]*>/g, "<div style='background: transparent; font-family: sans serif; -moz-opacity: 0.87'>" ); t = t.replace( /<\/body>/g, "</div>" ); t = t.replace( /</g, "<" ); t = t.replace( />/g, ">" ); t = t.replace( /"/g, "\"" ); if( !div ) { div = document.createElement( "div" ); div.id = "hop_default_failure"; div.style.setProperty( "position", "absolute", "" ); div.style.setProperty( "top", "100", "" ); div.style.setProperty( "z-index", "100", "" ); div.style.setProperty( "width", "100%", "" ); div.style.setProperty( "padding", "0", "" ); div.align = "center"; div.style.setProperty( "background", "transparent", "" ); div.innerHTML = t; document.body.appendChild( div ); } else { div.innerHTML = t; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/4db3bcf2264bd7748625eae07a25eee0c0f6893c/hop.js/clean/share/hop.js |
||
div.style.setProperty( "z-index", "100", "" ); | div.style.setProperty( "z-index", "10000", "" ); | function hop_default_failure( http ) { var t = http.responseText; var div = document.getElementById( "hop_default_failure" ); t = t.replace( /<!DOCTYPE[^>]*>/g, "" ); t = t.replace( /<(head|meta|link)[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/(head|meta|link)>/g, "</div>" ); t = t.replace( /<html[^>]*>/g, "<div style='width: 45em; overflow: auto; cursor: pointer;' onclick='document.body.removeChild( document.getElementById( \"hop_default_failure\" ) )' title='Click to hide this message'>" ); t = t.replace( /<\/html>/g, "</div>" ); t = t.replace( /<body[^>]*>/g, "<div style='background: transparent; font-family: sans serif; -moz-opacity: 0.87'>" ); t = t.replace( /<\/body>/g, "</div>" ); t = t.replace( /</g, "<" ); t = t.replace( />/g, ">" ); t = t.replace( /"/g, "\"" ); if( !div ) { div = document.createElement( "div" ); div.id = "hop_default_failure"; div.style.setProperty( "position", "absolute", "" ); div.style.setProperty( "top", "100", "" ); div.style.setProperty( "z-index", "100", "" ); div.style.setProperty( "width", "100%", "" ); div.style.setProperty( "padding", "0", "" ); div.align = "center"; div.style.setProperty( "background", "transparent", "" ); div.innerHTML = t; document.body.appendChild( div ); } else { div.innerHTML = t; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/4db3bcf2264bd7748625eae07a25eee0c0f6893c/hop.js/clean/share/hop.js |
function hop_default_failure( http ) { var t = http.responseText; var div = document.getElementById( "hop_default_failure" ); t = t.replace( /<!DOCTYPE[^>]*>/g, "" ); t = t.replace( /<(head|meta|link)[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/(head|meta|link)>/g, "</div>" ); t = t.replace( /<html[^>]*>/g, "<div style='width: 45em; overflow: auto; cursor: pointer;' onclick='document.body.removeChild( document.getElementById( \"hop_default_failure\" ) )' title='Click to hide this message'>" ); t = t.replace( /<\/html>/g, "</div>" ); t = t.replace( /<body[^>]*>/g, "<div style='background: transparent; font-family: sans serif; -moz-opacity: 0.87'>" ); t = t.replace( /<\/body>/g, "</div>" ); t = t.replace( /</g, "<" ); t = t.replace( />/g, ">" ); t = t.replace( /"/g, "\"" ); if( !div ) { div = document.createElement( "div" ); div.id = "hop_default_failure"; div.style.setProperty( "position", "absolute", "" ); div.style.setProperty( "top", "100", "" ); div.style.setProperty( "z-index", "100", "" ); div.style.setProperty( "width", "100%", "" ); div.style.setProperty( "padding", "0", "" ); div.align = "center"; div.style.setProperty( "background", "transparent", "" ); div.innerHTML = t; document.body.appendChild( div ); } else { div.innerHTML = t; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/4db3bcf2264bd7748625eae07a25eee0c0f6893c/hop.js/clean/share/hop.js |
||
char=e.charCode; switch (char) { | c=e.charCode; switch (c) { | function hop_edit_keypress_hdlr(e, id){ if (e==undefined) e=window.event; if (e.ctrlKey) { var propagate=false, char=e.charCode; switch (char) { case 98: hop_edit_action(id, "bold"); break; case 105: hop_edit_action(id, "italic"); break; case 117: hop_edit_action(id, "underline"); break; default: propagate = true; } if (!propagate) { hop_stop_propagation(e); } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/0f13875c170bf295e968ddf1b168f1b43c73a3ad/hop-editor.js/clean/share/hop-editor.js |
e.preventDefault(); e.stopPropagation(); | hop_stop_propagation(e); | function hop_edit_keypress_hdlr(e, id){ if (e.ctrlKey) { var propagate=false, char=e.charCode; switch (char) { case 98: hop_edit_action(id, "bold"); break; case 105: hop_edit_action(id, "italic"); break; case 117: hop_edit_action(id, "underline"); break; case 113: hop_edit_update_interface2(id); break; default: propagate = true; } if (!propagate) { e.preventDefault(); e.stopPropagation(); } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-editor.js/clean/share/hop-editor.js |
function hop_event_handler_set( svc, evt, success, failure ) { var req = hop_make_xml_http_request(); var handler = function ( http ) { http.eventName = evt; var res = success( http ); if( res ) { hop_event_handler_set( svc, evt, success, failure ); } return res; } req.open( "GET", svc( evt ) ); req.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded; charset=ISO-8859-1' ); req.setRequestHeader( 'Connection', 'close' ); return hop_inner( req, handler, failure, false );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/0638bb3f5a49037d0b456d31e1b44cb6c1a50d86/hop.js/clean/share/hop.js |
||
hop_event_handler_set( svc, evt, success, failure ); | hop_event_handler_set( svc, evt, success, failure ); | function hop_event_handler_set( svc, evt, success, failure ) { var req = hop_make_xml_http_request(); var handler = function ( http ) { http.eventName = evt; var res = success( http ); if( res ) { hop_event_handler_set( svc, evt, success, failure ); } return res; } req.open( "GET", svc( evt ) ); req.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded; charset=ISO-8859-1' ); req.setRequestHeader( 'Connection', 'close' ); return hop_inner( req, handler, failure, false );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/0638bb3f5a49037d0b456d31e1b44cb6c1a50d86/hop.js/clean/share/hop.js |
function hop_filebrowse( service, obj, width, height, event, onselect ) { | function hop_filebrowse( service, title, ident, value, path, multiselect, clientX, clientY, width, height ) { | function hop_filebrowse( service, obj, width, height, event, onselect ) { var x = window.innerWidth/2 - width/2; var y = event.clientY + 20; if( (y + height) > window.innerHeight ) y = window.innerHeight - height; obj.onselect = onselect; hop_iwindow_open( "file browser", service( obj.id, obj.value ), obj.value, "hop-file-browse", width, height, x, y );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/fb422ab8e18ca2d7dd41ab2c892d83ff83f81356/hop-fileselect.js/clean/share/hop-fileselect.js |
var y = event.clientY + 20; | var y = clientY + 20; var wident = ident + "-window"; | function hop_filebrowse( service, obj, width, height, event, onselect ) { var x = window.innerWidth/2 - width/2; var y = event.clientY + 20; if( (y + height) > window.innerHeight ) y = window.innerHeight - height; obj.onselect = onselect; hop_iwindow_open( "file browser", service( obj.id, obj.value ), obj.value, "hop-file-browse", width, height, x, y );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/fb422ab8e18ca2d7dd41ab2c892d83ff83f81356/hop-fileselect.js/clean/share/hop-fileselect.js |
obj.onselect = onselect; hop_iwindow_open( "file browser", service( obj.id, obj.value ), obj.value, | hop_iwindow_open( wident, service( ident, wident, value, path, multiselect ), title, | function hop_filebrowse( service, obj, width, height, event, onselect ) { var x = window.innerWidth/2 - width/2; var y = event.clientY + 20; if( (y + height) > window.innerHeight ) y = window.innerHeight - height; obj.onselect = onselect; hop_iwindow_open( "file browser", service( obj.id, obj.value ), obj.value, "hop-file-browse", width, height, x, y );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/fb422ab8e18ca2d7dd41ab2c892d83ff83f81356/hop-fileselect.js/clean/share/hop-fileselect.js |
if( event.which == 9 ) { | if( hop_event_key_code( event ) == 9 ) { | function hop_fileselect_keypress( service, obj, event, onreturn ) { if( event.which == 9 ) { hop_stop_propagation( event, false ); if( !hop_fileselect_init ) hop_fileselect_init = obj.value; if( hop_fileselect_count == -1 ) { with_hop( service( obj.value ), function( v ) { hop_fileselect_completions = v; hop_fileselect_complete( obj, v ); } ); } else { hop_fileselect_complete( obj, hop_fileselect_completions ); } } else { hop_fileselect_count = -1; hop_fileselect_completions = false; if( event.which == 13 ) { hop_stop_propagation( event, false ); obj.onreturn = onreturn; obj.onreturn(); } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-fileselect.js/buggy/share/hop-fileselect.js |
if( event.which == 13 ) { | if( hop_event_key_code( event ) == 13 ) { | function hop_fileselect_keypress( service, obj, event, onreturn ) { if( event.which == 9 ) { hop_stop_propagation( event, false ); if( !hop_fileselect_init ) hop_fileselect_init = obj.value; if( hop_fileselect_count == -1 ) { with_hop( service( obj.value ), function( v ) { hop_fileselect_completions = v; hop_fileselect_complete( obj, v ); } ); } else { hop_fileselect_complete( obj, hop_fileselect_completions ); } } else { hop_fileselect_count = -1; hop_fileselect_completions = false; if( event.which == 13 ) { hop_stop_propagation( event, false ); obj.onreturn = onreturn; obj.onreturn(); } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-fileselect.js/buggy/share/hop-fileselect.js |
function hop_fileselect_keypress( service, obj, event ) { | function hop_fileselect_keypress( service, obj, event, onreturn ) { | function hop_fileselect_keypress( service, obj, event ) { if( event.which == 9 ) { hop_stop_propagation( event, false ); if( !hop_fileselect_init ) hop_fileselect_init = obj.value; if( hop_fileselect_count == -1 ) { with_hop( service( obj.value ), function( v ) { hop_fileselect_completions = v; hop_fileselect_complete( obj, v ); } ); } else { hop_fileselect_complete( obj, hop_fileselect_completions ); } } else { hop_fileselect_count = -1; hop_fileselect_completions = false; if( event.which == 13 ) { if( obj.onchange ) { obj.onchange(); } } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-fileselect.js/clean/share/hop-fileselect.js |
if( obj.onchange ) { obj.onchange(); } | hop_stop_propagation( event, false ); obj.onreturn = onreturn; obj.onreturn(); | function hop_fileselect_keypress( service, obj, event ) { if( event.which == 9 ) { hop_stop_propagation( event, false ); if( !hop_fileselect_init ) hop_fileselect_init = obj.value; if( hop_fileselect_count == -1 ) { with_hop( service( obj.value ), function( v ) { hop_fileselect_completions = v; hop_fileselect_complete( obj, v ); } ); } else { hop_fileselect_complete( obj, hop_fileselect_completions ); } } else { hop_fileselect_count = -1; hop_fileselect_completions = false; if( event.which == 13 ) { if( obj.onchange ) { obj.onchange(); } } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7d5a493226b1130b7a0d0610b05ddc0d3cb73e24/hop-fileselect.js/clean/share/hop-fileselect.js |
HopDrag.init(el); | var h = document.getElementById(id + "-handle"); HopDrag.init(el, h); | function hop_float_window_init(id, inframe){ var el = document.getElementById(id); HopDrag.init(el); el.inFrame = inframe;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/3096f4438a1f8bb9ec65f0d89f78cb574d23c9c9/hop-window.js/buggy/share/hop-window.js |
obj.style.background = colors[ i ]; | function hop_fx_fade_background( obj, delay, step, colors ) { var it; var i = 0; var func = function() { i++; obj.style.background = colors[ i ]; return (i < colors.length); } obj.style.background = colors[ i ]; it = setInterval( function() { clearInterval( it ); hop_fx_repeat( func, step ) }, delay );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d9d6b2e3c521aa0e9b012cc36e10a59371fdfee5/hop-fx.js/clean/share/hop-fx.js |
|
paned.pan1.style.height = fraction; | hop_style_set( paned.pan1, "height", fraction ); | function hop_hpaned_fraction_set( paned, fraction ) { if( (fraction instanceof String) || (typeof fraction == "string") ) { paned.pan1.style.height = fraction; } else { if( (fraction < 0) || (fraction > 100) ) { return; } paned.pan1.style.height = fraction + "%"; } if( paned.fraction != fraction ) { paned.fraction = fraction; if( paned.onresize != undefined ) { paned.onresize(); } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
paned.pan1.style.height = fraction + "%"; | hop_style_set( paned.pan1, "height", fraction + "%" ); | function hop_hpaned_fraction_set( paned, fraction ) { if( (fraction instanceof String) || (typeof fraction == "string") ) { paned.pan1.style.height = fraction; } else { if( (fraction < 0) || (fraction > 100) ) { return; } paned.pan1.style.height = fraction + "%"; } if( paned.fraction != fraction ) { paned.fraction = fraction; if( paned.onresize != undefined ) { paned.onresize(); } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
if( (fraction < 0) || (fraction > 100) ) { return; | if( (fraction instanceof String) || (typeof fraction == "string") ) { paned.pan1.style.height = fraction; } else { if( (fraction < 0) || (fraction > 100) ) { return; } paned.pan1.style.height = fraction + "%"; | function hop_hpaned_fraction_set( paned, fraction ) { if( (fraction < 0) || (fraction > 100) ) { return; } paned.pan1.style.height = fraction + "%"; if( paned.fraction != fraction ) { paned.fraction = fraction; if( paned.onresize != undefined ) { paned.onresize(); } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/9c67b7a2ac8c77759253e0f1dbd200dfda613bd5/hop-paned.js/buggy/share/hop-paned.js |
paned.pan1.style.height = fraction + "%"; | function hop_hpaned_fraction_set( paned, fraction ) { if( (fraction < 0) || (fraction > 100) ) { return; } paned.pan1.style.height = fraction + "%"; if( paned.fraction != fraction ) { paned.fraction = fraction; if( paned.onresize != undefined ) { paned.onresize(); } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/9c67b7a2ac8c77759253e0f1dbd200dfda613bd5/hop-paned.js/buggy/share/hop-paned.js |
|
var val = e.clientY - hop_element_y( paned ); | var val = hop_event_mouse_y( e ) - hop_element_y( paned ); | function hop_hpaned_mousemove( e, paned ) { var val = e.clientY - hop_element_y( paned ); paned.pan1.style.height = val;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
paned.pan1.style.height = val; | hop_style_set( paned.pan1, "height", val ); | function hop_hpaned_mousemove( e, paned ) { var val = e.clientY - hop_element_y( paned ); paned.pan1.style.height = val;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6ca73f8db39b31f0ac4e3ee76255a79a86583465/hop-paned.js/clean/share/hop-paned.js |
img.classname = "hop-busy-anim"; | function hop_inner( method, service, success, failure, sync, mute ) { var http = new XMLHttpRequest(); var vis = false; if( !mute ) { vis = document.createElement( "div" ); vis.style.setProperty( "position", "absolute", "" ); vis.style.setProperty( "top", "5", "" ); vis.style.setProperty( "right", "5", "" ); vis.style.setProperty( "z-index", "100", "" ); vis.style.setProperty( "background", "#eeeeee", "" ); vis.style.setProperty( "-moz-opacity", "0.7", "" ); vis.style.setProperty( "border-color", "black", "" ); vis.style.setProperty( "border-style", "outset", "" ); vis.style.setProperty( "border-width", "1px", "" ); vis.style.setProperty( "padding", "2px", "" ); vis.title = service; var img = document.createElement( "img" ); img.src = hop_busy_anim; vis.appendChild( img ); document.body.appendChild( vis ); } http.open( method, service, (sync != true) ); http.onreadystatechange = function() { if( http.readyState == 4 ) { var status; if( !mute ) { document.body.removeChild( vis ); } try { status = http.status; } catch( e ) { if( failure ) { failure( http ); } else { throw( e ); } } switch( status ) { case 200: if( success ) { success( http ); } else { hop_js_eval( http ); } break; case 204: break; case 257: hop_js_eval( http ); break; case 258: if( http.responseText != null ) eval( http.responseText ); break; case 259: hop_set_cookie( http ); break; case 407: alert( "*** Hop Authentication Error " + http.status + ": `" + http.responseText + "'" ); break; default: if( (status > 200) && (status < 300) ) { if( success ) { success( http ); } } else { if( failure ) { failure( http ); } else { hop_default_failure( http ); } } } } } http.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded; charset=ISO-8859-1' );/* http.setTimeouts = 1000; */ http.send( null ); return http;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/bcfa4f343ff45889efe9eb4c8a1b60d9bf1a46bb/hop.js/clean/share/hop.js |
|
/* http.setTimeouts = 1000; */ | function hop_inner( method, service, success, failure, sync ) { var http = new XMLHttpRequest(); http.open( method, service, (sync != true) ); http.onreadystatechange = function() { if( http.readyState == 4 ) { var status; try { status = http.status; } catch( e ) { if( failure ) { failure( http ); } else { throw( e ); } } switch( status ) { case 200: if( success ) { success( http ); } else { hop_js_eval( http ); } break; case 204: break; case 257: hop_js_eval( http ); break; case 258: if( http.responseText != null ) eval( http.responseText ); break; case 259: hop_set_cookie( http ); break; case 407: alert( "*** Hop Authentication Error " + http.status + ": `" + http.responseText + "'" ); break; default: if( (status > 200) && (status < 300) ) { if( success ) { success( http ); } } else { if( failure ) { failure( http ); } else { var t = http.responseText; t = t.replace( /<[^>]+>/g, " " ); t = t.replace( /</g, "<" ); t = t.replace( />/g, ">" ); t = t.replace( /"/g, "\"" ); alert( "*** Hop Error " + http.status + ": " + t ); } } } } } http.setRequestHeader( 'Content-Type', 'application/x-www-form-urlencoded; charset=ISO-8859-1' ); http.send( null ); return http;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/0b5e8609acb4f24b22922d6ae27f863e30f1d091/hop.js/clean/share/hop.js |
|
return (obj instanceof HTMLElement); } | return (obj instanceof HTMLElement) || (obj.__proto__ == ifproto); } | hop_is_html_element = function hop_is_html_element( obj ) { return (obj instanceof HTMLElement); } | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/8c5eec3260ec443822ee383880153f15d2e2eaf7/hop-autoconf.js/buggy/share/hop-autoconf.js |
if( win.close ) { win.close( win ); } else { win.style.display = "none"; } | win.style.display = "none"; /* user event */ if( win.onclose ) win.onclose(); | function hop_iwindow_close( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.close ) { win.close( win ); } else { win.style.display = "none"; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-iwindow.js/clean/share/hop-iwindow.js |
win.style.display = "none"; | hop_style_set( win, "display", "none" ); | function hop_iwindow_close( id ) { var win = hop_is_html_element( id ) ? id : document.getElementById( id ); win.style.display = "none"; /* user event */ if( win.onclose ) win.onclose();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); | var win = hop_isHTMLElement( id ) ? id : document.getElementById( id ); | function hop_iwindow_close( id ) { var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); win.style.display = "none"; /* user event */ if( win.onclose ) win.onclose();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-iwindow.js/clean/share/hop-iwindow.js |
var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); | var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); | function hop_iwindow_close( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); win.style.display = "none"; /* user event */ if( win.onclose ) win.onclose();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/58470c250b2dc3f6e6c18ee5d1d84bb163d47284/hop-iwindow.js/clean/share/hop-iwindow.js |
var dx = hop_mouse_x( event ) - win.offsetLeft; var dy = hop_mouse_y( event ) - win.offsetTop; | var dx = hop_event_mouse_x( event ) - win.offsetLeft; var dy = hop_event_mouse_y( event ) - win.offsetTop; | function hop_iwindow_drag( event, win ) { var dx = hop_mouse_x( event ) - win.offsetLeft; var dy = hop_mouse_y( event ) - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); hop_style_set( win.el_main, "height", win.el_main.offsetHeight ); hop_style_set( win.el_main, "width", win.el_main.offsetWidth ); hop_style_set( win.el_body, "visibility", "hidden" ); hop_style_set( win.el_handle, "cursor", "move" ); var mousemove = function( event ) { var nx = (hop_mouse_x( event ) - dx); var ny = (hop_mouse_y( event ) - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { hop_style_set( win, "left", nx ); } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { hop_style_set( win, "top", ny ); } } else { if( nx > 0 ) hop_style_set( win, "left", nx ); if( ny > 0 ) hop_style_set( win, "top", ny ); } } var mouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); hop_remove_event_listener( document, "mouseup", mouseup ); hop_style_set( win.el_handle, "cursor", ocursor ); hop_style_set( win.el_body, "visibility", "visible" ); /* user event */ if( win.ondrag ) win.ondrag(); } hop_add_event_listener( document, "mousemove", mousemove ); hop_add_event_listener( document, "mouseup", mouseup ); hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js |
var nx = (hop_mouse_x( event ) - dx); var ny = (hop_mouse_y( event ) - dy); | var nx = (hop_event_mouse_x( event ) - dx); var ny = (hop_event_mouse_y( event ) - dy); | function hop_iwindow_drag( event, win ) { var dx = hop_mouse_x( event ) - win.offsetLeft; var dy = hop_mouse_y( event ) - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); hop_style_set( win.el_main, "height", win.el_main.offsetHeight ); hop_style_set( win.el_main, "width", win.el_main.offsetWidth ); hop_style_set( win.el_body, "visibility", "hidden" ); hop_style_set( win.el_handle, "cursor", "move" ); var mousemove = function( event ) { var nx = (hop_mouse_x( event ) - dx); var ny = (hop_mouse_y( event ) - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { hop_style_set( win, "left", nx ); } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { hop_style_set( win, "top", ny ); } } else { if( nx > 0 ) hop_style_set( win, "left", nx ); if( ny > 0 ) hop_style_set( win, "top", ny ); } } var mouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); hop_remove_event_listener( document, "mouseup", mouseup ); hop_style_set( win.el_handle, "cursor", ocursor ); hop_style_set( win.el_body, "visibility", "visible" ); /* user event */ if( win.ondrag ) win.ondrag(); } hop_add_event_listener( document, "mousemove", mousemove ); hop_add_event_listener( document, "mouseup", mouseup ); hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js |
debug( "ny=" + ny + "\n" ); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } event.preventDefault(); event.stopPropagation();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/8c102c7a0b72750adc05ada33b02d7131b37b364/hop-iwindow.js/buggy/share/hop-iwindow.js |
|
win.el_main.style.height = win.el_content.offsetHeight; win.el_main.style.width = win.el_content.offsetWidth; | win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; | function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; win.el_main.style.height = win.el_content.offsetHeight; win.el_main.style.width = win.el_content.offsetWidth; win.el_body.style.display = "none"; win.el_handle.style.cursor = "move"; document.onmousemove = function( event ) { win.style.left = event.clientX - dx; win.style.top = event.clientY - dy; } document.onmouseup = function( event ) { document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.display = "block"; } 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 |
/* user event */ if( win.ondrag ) win.ondrag(); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; win.el_main.style.height = win.el_content.offsetHeight; win.el_main.style.width = win.el_content.offsetWidth; win.el_body.style.display = "none"; win.el_handle.style.cursor = "move"; document.onmousemove = function( event ) { win.style.left = event.clientX - dx; win.style.top = event.clientY - dy; } document.onmouseup = function( event ) { document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.display = "block"; } 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 |
|
var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); | var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; | function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; debug( "win-drag, clientY=" + event.clientY + " y=" + hop_element_y( win ) + " dy=" + dy + "\n" ); document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; debug( "ny=" + ny + "\n" ); } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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 |
debug( "win-drag, clientY=" + event.clientY + " y=" + hop_element_y( win ) + " dy=" + dy + "\n" ); document.onmousemove = function( event ) { if( event == undefined ) event = window.event; | var mousemove = function( event ) { | function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; debug( "win-drag, clientY=" + event.clientY + " y=" + hop_element_y( win ) + " dy=" + dy + "\n" ); document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; debug( "ny=" + ny + "\n" ); } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) { | if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { | function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; debug( "win-drag, clientY=" + event.clientY + " y=" + hop_element_y( win ) + " dy=" + dy + "\n" ); document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; debug( "ny=" + ny + "\n" ); } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) { | if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { | function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; debug( "win-drag, clientY=" + event.clientY + " y=" + hop_element_y( win ) + " dy=" + dy + "\n" ); document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; debug( "ny=" + ny + "\n" ); } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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 |
debug( "ny=" + ny + "\n" ); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; debug( "win-drag, clientY=" + event.clientY + " y=" + hop_element_y( win ) + " dy=" + dy + "\n" ); document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; debug( "ny=" + ny + "\n" ); } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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; document.onmousemove = false; | hop_remove_event_listener( document, "mousemove", mousemove ); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; debug( "win-drag, clientY=" + event.clientY + " y=" + hop_element_y( win ) + " dy=" + dy + "\n" ); document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; debug( "ny=" + ny + "\n" ); } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; debug( "win-drag, clientY=" + event.clientY + " y=" + hop_element_y( win ) + " dy=" + dy + "\n" ); document.onmousemove = function( event ) { if( event == undefined ) event = window.event; var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; debug( "ny=" + ny + "\n" ); } } document.onmouseup = function( event ) { if( event == undefined ) event = window.event; document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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 dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; | var dx = hop_mouse_x( event ) - win.offsetLeft; var dy = hop_mouse_y( event ) - win.offsetTop; | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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 = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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.visibility = "hidden"; win.el_handle.style.cursor = "move"; | hop_style_set( win.el_main, "height", win.el_main.offsetHeight ); hop_style_set( win.el_main, "width", win.el_main.offsetWidth ); hop_style_set( win.el_body, "visibility", "hidden" ); hop_style_set( win.el_handle, "cursor", "move" ); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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 nx = (event.clientX - dx); var ny = (event.clientY - dy); | var nx = (hop_mouse_x( event ) - dx); var ny = (hop_mouse_y( event ) - dy); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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.style.left = nx; | hop_style_set( win, "left", nx ); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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.style.top = ny; | hop_style_set( win, "top", ny ); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; | if( nx > 0 ) hop_style_set( win, "left", nx ); if( ny > 0 ) hop_style_set( win, "top", ny ); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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, "mousemove", mousemove ); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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 ) { | var mouseup = function( event ) { | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; | hop_remove_event_listener( document, "mouseup", mouseup ); hop_style_set( win.el_handle, "cursor", ocursor ); hop_style_set( win.el_body, "visibility", "visible" ); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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, "mousemove", mousemove ); hop_add_event_listener( document, "mouseup", mouseup ); | function hop_iwindow_drag( event, win ) { var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; var mousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } hop_add_event_listener( document, "mousemove", mousemove ); document.onmouseup = function( event ) { hop_remove_event_listener( document, "mousemove", mousemove ); win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth; win.el_body.style.visibility = "hidden"; win.el_handle.style.cursor = "move"; document.onmousemove = function( event ) { var nx = (event.clientX - dx); var ny = (event.clientY - dy); if( win.user_parent ) { var p = win.parentNode; var px = hop_element_x( p ); var py = hop_element_y( p ); if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) { win.style.left = nx; } if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) { win.style.top = ny; } } else { if( nx > 0 ) win.style.left = nx; if( ny > 0 ) win.style.top = ny; } } document.onmouseup = function( event ) { document.onmousemove = false; win.el_handle.style.cursor = ocursor; win.el_body.style.visibility = "visible"; /* user event */ if( win.ondrag ) win.ondrag(); } 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 |
|
win.iconify( win ); | win.iconify(); | function hop_iwindow_iconify( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.iconify ) { win.iconify( win ); } else { /* nothing yet */ }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-iwindow.js/clean/share/hop-iwindow.js |
/* user event */ if( win.iconifiedp ) { if( win.ondeiconify ) win.ondeiconify(); win.iconifiedp = false; } else { if( win.oniconify ) win.oniconify(); win.iconifiedp = true; } | function hop_iwindow_iconify( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.iconify ) { win.iconify( win ); } else { /* nothing yet */ }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-iwindow.js/clean/share/hop-iwindow.js |
|
win.style.top = old + window.pageYOffset; | hop_style_set( win, "top", old + window.pageYOffset ); | function hop_iwindow_iconify( id ) { var win = hop_is_html_element( id ) ? id : document.getElementById( id ); if( win.iconifiedp ) { win.iconifiedp = false; } else { } if( win.iconify ) { win.iconify(); } else { if( win.style.position == "fixed" ) { var old = win.offsetTop; // MS 3may2006: I think that for IE, we have to use // document.documentElement.scrollTop or document.body.scrollTop win.style.top = old + window.pageYOffset; hop_style_set( win, "position", "absolute" ); } else { var old = win.offsetTop; win.style.top = old - window.pageYOffset; hop_style_set( win, "position", "fixed" ); } } /* user event */ if( win.iconifiedp ) { if( win.ondeiconify ) win.ondeiconify(); win.iconifiedp = false; } else { if( win.oniconify ) win.oniconify(); win.iconifiedp = true; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
win.style.top = old - window.pageYOffset; | hop_style_set( win, "top", old - window.pageYOffset ); | function hop_iwindow_iconify( id ) { var win = hop_is_html_element( id ) ? id : document.getElementById( id ); if( win.iconifiedp ) { win.iconifiedp = false; } else { } if( win.iconify ) { win.iconify(); } else { if( win.style.position == "fixed" ) { var old = win.offsetTop; // MS 3may2006: I think that for IE, we have to use // document.documentElement.scrollTop or document.body.scrollTop win.style.top = old + window.pageYOffset; hop_style_set( win, "position", "absolute" ); } else { var old = win.offsetTop; win.style.top = old - window.pageYOffset; hop_style_set( win, "position", "fixed" ); } } /* user event */ if( win.iconifiedp ) { if( win.ondeiconify ) win.ondeiconify(); win.iconifiedp = false; } else { if( win.oniconify ) win.oniconify(); win.iconifiedp = true; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); | var win = hop_isHTMLElement( id ) ? id : document.getElementById( id ); | function hop_iwindow_iconify( id ) { var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); if( win.iconifiedp ) { win.iconifiedp = false; } else { } if( win.iconify ) { win.iconify(); } else { if( win.style.position == "fixed" ) { var old = win.offsetTop; // MS 3may2006: I think that for IE, we have to use // document.documentElement.scrollTop or document.body.scrollTop win.style.top = old + window.pageYOffset; win.style.setProperty( "position", "absolute", "" ); } else { var old = win.offsetTop; win.style.top = old - window.pageYOffset; win.style.setProperty( "position", "fixed", "" ); } } /* user event */ if( win.iconifiedp ) { if( win.ondeiconify ) win.ondeiconify(); win.iconifiedp = false; } else { if( win.oniconify ) win.oniconify(); win.iconifiedp = true; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-iwindow.js/clean/share/hop-iwindow.js |
var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); | var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); | function hop_iwindow_iconify( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.iconifiedp ) { win.iconifiedp = false; } else { } if( win.iconify ) { win.iconify(); } else { if( win.style.position == "fixed" ) { var old = win.offsetTop; // MS 3may2006: I think that for IE, we have to use // document.documentElement.scrollTop or document.body.scrollTop win.style.top = old + window.pageYOffset; win.style.setProperty( "position", "absolute", "" ); } else { var old = win.offsetTop; win.style.top = old - window.pageYOffset; win.style.setProperty( "position", "fixed", "" ); } } /* user event */ if( win.iconifiedp ) { if( win.ondeiconify ) win.ondeiconify(); win.iconifiedp = false; } else { if( win.oniconify ) win.oniconify(); win.iconifiedp = true; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/58470c250b2dc3f6e6c18ee5d1d84bb163d47284/hop-iwindow.js/clean/share/hop-iwindow.js |
if( win.style.position != "absolute" ) { | if( win.style.position == "fixed" ) { | function hop_iwindow_iconify( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.iconifiedp ) { win.iconifiedp = false; } else { } if( win.iconify ) { win.iconify(); } else { if( win.style.position != "absolute" ) { var old = win.offsetTop; // MS 3may2006: I think that for IE, we have to use // document.documentElement.scrollTop or document.body.scrollTop win.style.top = old + window.pageYOffset; win.style.setProperty( "position", "absolute", "" ); } else { var old = win.offsetTop; win.style.top = old - window.pageYOffset; win.style.setProperty( "position", "fixed", "" ); } } /* user event */ if( win.iconifiedp ) { if( win.ondeiconify ) win.ondeiconify(); win.iconifiedp = false; } else { if( win.oniconify ) win.oniconify(); win.iconifiedp = true; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/6f6bf2c9207cd0daf11a1739fdd958aa57949fe5/hop-iwindow.js/buggy/share/hop-iwindow.js |
if( win.style[ "position" ] == "fixed" ) | if( win.style[ "position" ] == "fixed" ) { var old = win.offsetTop; win.style.top = old + window.pageYOffset; | function hop_iwindow_iconify( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.iconifiedp ) { win.iconifiedp = false; } else { } if( win.iconify ) { win.iconify(); } else { if( win.style[ "position" ] == "fixed" ) win.style.setProperty( "position", "absolute", "" ); else win.style.setProperty( "position", "fixed", "" ); } /* user event */ if( win.iconifiedp ) { if( win.ondeiconify ) win.ondeiconify(); win.iconifiedp = false; } else { if( win.oniconify ) win.oniconify(); win.iconifiedp = true; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/c8c66acc5c27db847725101a3defe734d066a117/hop-iwindow.js/clean/share/hop-iwindow.js |
else | } else { var old = win.offsetTop; win.style.top = old - window.pageYOffset; | function hop_iwindow_iconify( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.iconifiedp ) { win.iconifiedp = false; } else { } if( win.iconify ) { win.iconify(); } else { if( win.style[ "position" ] == "fixed" ) win.style.setProperty( "position", "absolute", "" ); else win.style.setProperty( "position", "fixed", "" ); } /* user event */ if( win.iconifiedp ) { if( win.ondeiconify ) win.ondeiconify(); win.iconifiedp = false; } else { if( win.oniconify ) win.oniconify(); win.iconifiedp = true; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/c8c66acc5c27db847725101a3defe734d066a117/hop-iwindow.js/clean/share/hop-iwindow.js |
} | function hop_iwindow_iconify( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.iconifiedp ) { win.iconifiedp = false; } else { } if( win.iconify ) { win.iconify(); } else { if( win.style[ "position" ] == "fixed" ) win.style.setProperty( "position", "absolute", "" ); else win.style.setProperty( "position", "fixed", "" ); } /* user event */ if( win.iconifiedp ) { if( win.ondeiconify ) win.ondeiconify(); win.iconifiedp = false; } else { if( win.oniconify ) win.oniconify(); win.iconifiedp = true; }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/c8c66acc5c27db847725101a3defe734d066a117/hop-iwindow.js/clean/share/hop-iwindow.js |
|
win.maximize( win ); | win.maximize(); | function hop_iwindow_maximize( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize( win ); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; win.el_main.style.width = window.innerWidth; win.el_main.style.height = window.innerHeight; win.style.top = 0; win.style.left = 0; } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-iwindow.js/clean/share/hop-iwindow.js |
win.el_main.style.width = window.innerWidth; win.el_main.style.height = window.innerHeight; | win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight; | function hop_iwindow_maximize( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize( win ); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; win.el_main.style.width = window.innerWidth; win.el_main.style.height = window.innerHeight; win.style.top = 0; win.style.left = 0; } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-iwindow.js/clean/share/hop-iwindow.js |
/* user event */ if( win.onresize ) win.onresize(); | function hop_iwindow_maximize( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize( win ); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; win.el_main.style.width = window.innerWidth; win.el_main.style.height = window.innerHeight; win.style.top = 0; win.style.left = 0; } }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-iwindow.js/clean/share/hop-iwindow.js |
|
win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; | hop_style_set( win.el_main, "width", win.oldwidth ); hop_style_set( win.el_main, "height", win.oldheight ); hop_style_set( win.style, "top", win.oldtop ); hop_style_set( win.style, "left", win.oldleft ); | function hop_iwindow_maximize( id ) { var win = hop_is_html_element( id ) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize(); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; if( win.user_parent ) { var p = win.parentNode; win.el_main.style.width = p.offsetWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = p.offsetHeight - win.el_shadow_box.offsetHeight; win.style.top = hop_element_y( p ) + 1; win.style.left = hop_element_x( p ) + 1; } else { win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth - 2; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight - 2; win.style.top = 0; win.style.left = 0; } } } /* user event */ if( win.onresize ) win.onresize();} | 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 = p.offsetWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = p.offsetHeight - win.el_shadow_box.offsetHeight; | function hop_iwindow_maximize( id ) { var win = hop_is_html_element( id ) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize(); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; if( win.user_parent ) { var p = win.parentNode; win.el_main.style.width = p.offsetWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = p.offsetHeight - win.el_shadow_box.offsetHeight; win.style.top = hop_element_y( p ) + 1; win.style.left = hop_element_x( p ) + 1; } else { win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth - 2; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight - 2; win.style.top = 0; win.style.left = 0; } } } /* user event */ if( win.onresize ) win.onresize();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
|
win.style.top = hop_element_y( p ) + 1; win.style.left = hop_element_x( p ) + 1; | hop_style_set( win.el_main, "width", p.offsetWidth - win.el_shadow_box.offsetWidth ); hop_style_set( win.el_main, "height", p.offsetHeight - win.el_shadow_box.offsetHeight ); hop_style_set( win, "top", hop_element_y( p ) + 1 ); hop_style_set( win, "left", hop_element_x( p ) + 1 ); | function hop_iwindow_maximize( id ) { var win = hop_is_html_element( id ) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize(); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; if( win.user_parent ) { var p = win.parentNode; win.el_main.style.width = p.offsetWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = p.offsetHeight - win.el_shadow_box.offsetHeight; win.style.top = hop_element_y( p ) + 1; win.style.left = hop_element_x( p ) + 1; } else { win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth - 2; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight - 2; win.style.top = 0; win.style.left = 0; } } } /* user event */ if( win.onresize ) win.onresize();} | 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 = window.innerWidth - win.el_shadow_box.offsetWidth - 2; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight - 2; | hop_style_set( win.el_main, "width", window.innerWidth - win.el_shadow_box.offsetWidth - 2 ); hop_style_set( win.el_main, "height", window.innerHeight - win.el_shadow_box.offsetHeight - 2 ); | function hop_iwindow_maximize( id ) { var win = hop_is_html_element( id ) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize(); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; if( win.user_parent ) { var p = win.parentNode; win.el_main.style.width = p.offsetWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = p.offsetHeight - win.el_shadow_box.offsetHeight; win.style.top = hop_element_y( p ) + 1; win.style.left = hop_element_x( p ) + 1; } else { win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth - 2; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight - 2; win.style.top = 0; win.style.left = 0; } } } /* user event */ if( win.onresize ) win.onresize();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
win.style.top = 0; win.style.left = 0; | hop_style_set( win, "top", 0 ); hop_style_set( win, "left", 0 ); | function hop_iwindow_maximize( id ) { var win = hop_is_html_element( id ) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize(); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; if( win.user_parent ) { var p = win.parentNode; win.el_main.style.width = p.offsetWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = p.offsetHeight - win.el_shadow_box.offsetHeight; win.style.top = hop_element_y( p ) + 1; win.style.left = hop_element_x( p ) + 1; } else { win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth - 2; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight - 2; win.style.top = 0; win.style.left = 0; } } } /* user event */ if( win.onresize ) win.onresize();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); | var win = hop_isHTMLElement( id ) ? id : document.getElementById( id ); | function hop_iwindow_maximize( id ) { var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize(); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; if( win.user_parent ) { var p = win.parentNode; win.el_main.style.width = p.offsetWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = p.offsetHeight - win.el_shadow_box.offsetHeight; win.style.top = hop_element_y( p ) + 1; win.style.left = hop_element_x( p ) + 1; } else { win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth - 2; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight - 2; win.style.top = 0; win.style.left = 0; } } } /* user event */ if( win.onresize ) win.onresize();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-iwindow.js/clean/share/hop-iwindow.js |
var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); | var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); | function hop_iwindow_maximize( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize(); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; if( win.user_parent ) { var p = win.parentNode; win.el_main.style.width = p.offsetWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = p.offsetHeight - win.el_shadow_box.offsetHeight; win.style.top = hop_element_y( p ) + 1; win.style.left = hop_element_x( p ) + 1; } else { win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth - 2; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight - 2; win.style.top = 0; win.style.left = 0; } } } /* user event */ if( win.onresize ) win.onresize();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/58470c250b2dc3f6e6c18ee5d1d84bb163d47284/hop-iwindow.js/clean/share/hop-iwindow.js |
win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight; | if( win.user_parent ) { var p = win.parentNode; win.el_main.style.width = p.offsetWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = p.offsetHeight - win.el_shadow_box.offsetHeight; | function hop_iwindow_maximize( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize(); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight; win.style.top = 0; win.style.left = 0; } } /* user event */ if( win.onresize ) win.onresize();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/308840fad47490a6c7c064970f85adfa8ec29622/hop-iwindow.js/clean/share/hop-iwindow.js |
win.style.top = 0; win.style.left = 0; | win.style.top = hop_element_y( p ) + 1; win.style.left = hop_element_x( p ) + 1; } else { win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth - 2; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight - 2; win.style.top = 0; win.style.left = 0; } | function hop_iwindow_maximize( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.maximize ) { win.maximize(); } else { if( win.maximized ) { win.maximized = false; win.el_main.style.width = win.oldwidth; win.el_main.style.height = win.oldheight; win.style.top = win.oldtop; win.style.left = win.oldleft; } else { win.maximized = true; win.oldwidth = win.el_main.style.width; win.oldheight = win.el_main.style.height; win.oldtop = win.style.top; win.oldleft = win.style.left; win.el_main.style.width = window.innerWidth - win.el_shadow_box.offsetWidth; win.el_main.style.height = window.innerHeight - win.el_shadow_box.offsetHeight; win.style.top = 0; win.style.left = 0; } } /* user event */ if( win.onresize ) win.onresize();} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/308840fad47490a6c7c064970f85adfa8ec29622/hop-iwindow.js/clean/share/hop-iwindow.js |
function hop_iwindow_open( id, title, class, obj, width, height, x, y ) { | function hop_iwindow_open( id, obj, title, class, width, height, x, y ) { | function hop_iwindow_open( id, title, class, obj, width, height, x, y ) { | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7a8fe2e7c3da21b722cbd59ca55b8e707b805278/hop-iwindow.js/clean/share/hop-iwindow.js |
function hop_iwindow_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? ("hop-iwindow " + klass) : "hop-iwindow"; if( win == null ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( hop_is_html_element( obj ) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height;/* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js |
||
function hop_iwindow_open( id, obj, title, class, width, height, x, y, parent ) { | function hop_iwindow_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? klass : "hop-iwindow"; if( !win ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( (obj instanceof HTMLElement) || (obj instanceof Object && obj.propertyIsEnumerable( "innerHTML" )) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height; /* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win; } | function hop_iwindow_open( id, obj, title, class, width, height, x, y, parent ) { | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/737cbaf83d84c17cd17f1c4c7d6d6aaf1da87b7a/hop-iwindow.js/clean/share/hop-iwindow.js |
win.style.display = "block"; | hop_style_set( win, "display", "block" ); | function hop_iwindow_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? ("hop-iwindow " + klass) : "hop-iwindow"; if( win == null ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( hop_is_html_element( obj ) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height;/* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win;} | 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_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? ("hop-iwindow " + klass) : "hop-iwindow"; if( win == null ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( hop_is_html_element( obj ) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height;/* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
if( x ) win.style.left = x; if( y ) win.style.top = y; | if( x ) hop_style_set( win, "left", x ); if( y ) hop_style_set( win, "top", y ); | function hop_iwindow_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? ("hop-iwindow " + klass) : "hop-iwindow"; if( win == null ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( hop_is_html_element( obj ) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height;/* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win;} | 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 = width; win.el_content.style.width = "100%"; | hop_style_set( win.el_main, "width", width ); hop_style_set( win.el_content, "width", "100%" ); | function hop_iwindow_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? ("hop-iwindow " + klass) : "hop-iwindow"; if( win == null ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( hop_is_html_element( obj ) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height;/* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win;} | 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 = height; | hop_style_set( win.el_main, "height", height ); | function hop_iwindow_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? ("hop-iwindow " + klass) : "hop-iwindow"; if( win == null ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( hop_is_html_element( obj ) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height;/* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win;} | 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.top = 0; | hop_style_set( win.el_body, "top", 0 ); | function hop_iwindow_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? ("hop-iwindow " + klass) : "hop-iwindow"; if( win == null ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( hop_is_html_element( obj ) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height;/* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win;} | 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 = "block"; | hop_style_set( win.el_body, "display", "block" ); | function hop_iwindow_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? ("hop-iwindow " + klass) : "hop-iwindow"; if( win == null ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( hop_is_html_element( obj ) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height;/* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
if( (obj instanceof HTMLElement) || (obj instanceof Object && obj.propertyIsEnumerable( "innerHTML" )) ) { | if( hop_isHTMLElement( obj ) ) { | function hop_iwindow_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? klass : "hop-iwindow"; if( !win ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( (obj instanceof HTMLElement) || (obj instanceof Object && obj.propertyIsEnumerable( "innerHTML" )) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height;/* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-iwindow.js/clean/share/hop-iwindow.js |
function hop_iwindow_open( id, obj, title, klass, width, height, x, y, parent ) { var win = document.getElementById( id ); var isnew = false; klass = klass ? ("hop-iwindow " + klass) : "hop-iwindow"; if( win == null ) { win = make_hop_iwindow( id, klass, parent ); isnew = true; } else { win.style.display = "block"; } /* start hidden otherwise we loose the border on drag! */ win.el_body.style.display = "none"; if( hop_is_html_element( obj ) ) { var c = win.el_body.childNodes; var i = c.length; while( i > 0 ) { i--; win.el_body.removeChild( c[ i ] ); } win.el_body.appendChild( obj ); } else { var cb = function( http ) { if( http.responseText != null ) { win.el_body.innerHTML = http.responseText; hop_js_eval( http ); } }; if( typeof obj == "function" ) { hop( obj(), cb ); } else { if( (obj instanceof String) || (typeof obj == "string") ) { hop( obj, cb ); } else { alert( "*** Hop Error, Illegal `iwindow' content -- " + obj + " (" + typeof obj + ")" ); } } } win.el_title.innerHTML = title ? title : id; if( isnew ) { if( x ) win.style.left = x; if( y ) win.style.top = y; if( width ) { win.el_main.style.width = width; win.el_content.style.width = "100%"; } if( height ) { win.el_main.style.height = height;/* win.el_content.style.height = "100%"; */ } if( win.onresize ) win.onresize(); } else { win.el_body.style.top = 0; } win.el_body.style.display = "block"; hop_iwindow_raise( win ); return win;} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/8c5eec3260ec443822ee383880153f15d2e2eaf7/hop-iwindow.js/buggy/share/hop-iwindow.js |
||
if( w[ i ].style[ "z-index" ] > 0 ) w[ i ].style[ "z-index" ]--; | if( w[ i ].style[ "z-index" ] > 0 ) hop_style_set( w[ i ], "z-index", w[ i ].style[ "z-index" ] - 1 ); | function hop_iwindow_raise( win ) { if( hop_iwindow_zindex < 1000 ) { hop_style_set( win, "z-index", ++hop_iwindow_zindex ); } else { var w = document.getElementsByName( "hop-iwindow" ); var i; for( i = 0; i < w.length; i++ ) { if( w[ i ].style[ "z-index" ] > 0 ) w[ i ].style[ "z-index" ]--; } hop_style_set( win, "z-index", 999 ); }} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/a6ed8e1dacfac579593af3fc5dd75eae78ef2b2f/hop-iwindow.js/buggy/share/hop-iwindow.js |
var x0 = hop_mouse_x( event ); var y0 = hop_mouse_y( event ); | var x0 = hop_event_mouse_x( event ); var y0 = hop_event_mouse_y( event ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = hop_mouse_x( event ); var y0 = hop_mouse_y( event ); var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; hop_style_set( win.el_body, "display", "none" ); if( widthp && heightp ) { mousemove = function( event ) { 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) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { 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) ); } hop_add_event_listener( document, "mousemove", mousemove ); } } } var mouseup = function( event ) { hop_style_set( win.el_body, "display", "block" ); hop_remove_event_listener( document, "mousemove", mousemove ); hop_remove_event_listener( document, "mouseup", mouseup ); /* user event */ if( win.onresize ) win.onresize(); } hop_add_event_listener( document, "mouseup", mouseup ); hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js |
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) ); | hop_style_set( win.el_main, "width", w0 + (hop_event_mouse_x( event ) - x0) ); hop_style_set( win.el_main, "height", h0 + (hop_event_mouse_y( event ) - y0) ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = hop_mouse_x( event ); var y0 = hop_mouse_y( event ); var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; hop_style_set( win.el_body, "display", "none" ); if( widthp && heightp ) { mousemove = function( event ) { 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) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { 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) ); } hop_add_event_listener( document, "mousemove", mousemove ); } } } var mouseup = function( event ) { hop_style_set( win.el_body, "display", "block" ); hop_remove_event_listener( document, "mousemove", mousemove ); hop_remove_event_listener( document, "mouseup", mouseup ); /* user event */ if( win.onresize ) win.onresize(); } hop_add_event_listener( document, "mouseup", mouseup ); hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js |
hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) ); | hop_style_set( win.el_main, "width", w0 + (hop_event_mouse_x( event ) - x0) ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = hop_mouse_x( event ); var y0 = hop_mouse_y( event ); var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; hop_style_set( win.el_body, "display", "none" ); if( widthp && heightp ) { mousemove = function( event ) { 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) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { 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) ); } hop_add_event_listener( document, "mousemove", mousemove ); } } } var mouseup = function( event ) { hop_style_set( win.el_body, "display", "block" ); hop_remove_event_listener( document, "mousemove", mousemove ); hop_remove_event_listener( document, "mouseup", mouseup ); /* user event */ if( win.onresize ) win.onresize(); } hop_add_event_listener( document, "mouseup", mouseup ); hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js |
hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); | hop_style_set( win.el_main, "height", h0 + (hop_event_mouse_y( event ) - y0) ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = hop_mouse_x( event ); var y0 = hop_mouse_y( event ); var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; hop_style_set( win.el_body, "display", "none" ); if( widthp && heightp ) { mousemove = function( event ) { 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) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { 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) ); } hop_add_event_listener( document, "mousemove", mousemove ); } } } var mouseup = function( event ) { hop_style_set( win.el_body, "display", "block" ); hop_remove_event_listener( document, "mousemove", mousemove ); hop_remove_event_listener( document, "mouseup", mouseup ); /* user event */ if( win.onresize ) win.onresize(); } hop_add_event_listener( document, "mouseup", mouseup ); hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js |
var w = w0 + (x0 - hop_mouse_y( event )); | var w = w0 + (x0 - hop_event_mouse_y( event )); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = hop_mouse_x( event ); var y0 = hop_mouse_y( event ); var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; hop_style_set( win.el_body, "display", "none" ); if( widthp && heightp ) { mousemove = function( event ) { 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) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { 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) ); } hop_add_event_listener( document, "mousemove", mousemove ); } } } var mouseup = function( event ) { hop_style_set( win.el_body, "display", "block" ); hop_remove_event_listener( document, "mousemove", mousemove ); hop_remove_event_listener( document, "mouseup", mouseup ); /* user event */ if( win.onresize ) win.onresize(); } hop_add_event_listener( document, "mouseup", mouseup ); hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js |
hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); | hop_style_set( win.el_main, "height", h0 + (hop_event_mouse_y( event ) - y0) ); | function hop_iwindow_resize( event, win, widthp, heightp ) { var x0 = hop_mouse_x( event ); var y0 = hop_mouse_y( event ); var w0 = win.el_main.offsetWidth; var h0 = win.el_main.offsetHeight; var mousemove; hop_style_set( win.el_body, "display", "none" ); if( widthp && heightp ) { mousemove = function( event ) { 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) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( widthp ) { mousemove = function( event ) { hop_style_set( win.el_main, "width", w0 + (hop_mouse_x( event ) - x0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { if( heightp ) { mousemove = function( event ) { hop_style_set( win.el_main, "height", h0 + (hop_mouse_y( event ) - y0) ); }; hop_add_event_listener( document, "mousemove", mousemove ); } else { var l0 = win.offsetLeft; mousemove = function( event ) { 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) ); } hop_add_event_listener( document, "mousemove", mousemove ); } } } var mouseup = function( event ) { hop_style_set( win.el_body, "display", "block" ); hop_remove_event_listener( document, "mousemove", mousemove ); hop_remove_event_listener( document, "mouseup", mouseup ); /* user event */ if( win.onresize ) win.onresize(); } hop_add_event_listener( document, "mouseup", mouseup ); hop_stop_propagation( event );} | 4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/156180e2b1a546060c4a495a7b45070e1ebfacec/hop-iwindow.js/buggy/share/hop-iwindow.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.