rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
var top = parseInt(this.slider.top);
var top = Position.page(evt.object)[1];
divClick: function (evt) { var y = evt.xy.y; var top = parseInt(this.slider.top); var levels = Math.floor((y - top)/this.zoomStopHeight); this.map.zoomTo(this.map.getZoomLevels() - levels); Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c8ed8cee87fae7dd1e1f91a074edbfeb82b18e4e/PanZoomBar.js/buggy/lib/OpenLayers/Control/PanZoomBar.js
if (!Event.isLeftClick(evt)) return;
divClick: function (evt) { var y = evt.xy.y; var top = Position.page(evt.object)[1]; var levels = Math.floor((y - top)/this.zoomStopHeight); this.map.zoomTo(this.map.getZoomLevels() - levels); Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/PanZoomBar.js/buggy/lib/OpenLayers/Control/PanZoomBar.js
if (!Event.isLeftClick(evt)) return;
divClick: function (evt) { var y = evt.xy.y; var top = Position.page(evt.object)[1]; var levels = Math.floor((y - top)/this.zoomStopHeight); this.map.zoomTo(this.map.getZoomLevels() - levels); Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/PanZoomBar.js/clean/lib/OpenLayers/Control/PanZoomBar.js
element.dragLastY = y;
function dividerDrag(event) { var element = document.getElementById("divider"); if (document.getElementById("divider").dragging == true) { var main = document.getElementById("main"); var top = document.getElementById("info"); var bottom = document.getElementById("body"); var y = event.clientY + window.scrollY; var delta = element.dragLastY - y; var newHeight = constrainedHeightFromElement(top.clientHeight - delta, main); top.style.height = newHeight + "px"; bottom.style.top = newHeight + "px"; element.dragLastY = y; event.preventDefault(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/87b1b60eb821e948fcb1f6f2c20521b54e9dba47/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
function dividerDrag(event) {
function dividerDrag(event) {
function dividerDrag(event) { var element = document.getElementById("divider"); if (document.getElementById("divider").dragging == true) { var main = document.getElementById("main"); var top = document.getElementById("info"); var bottom = document.getElementById("body"); var y = event.clientY + window.scrollY; var delta = element.dragLastY - y; var newHeight = constrainedHeightFromElement(top.clientHeight - delta, main); if ((top.clientHeight - delta) == newHeight) // the height wasn't constrained element.dragLastY = y; top.style.height = newHeight + "px"; bottom.style.top = newHeight + "px"; event.preventDefault(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
document.body.style.cursor = null;
document.body.style.removeProperty("cursor");
function dividerDragEnd(element, dividerDrag, dividerDragEnd, event) { element.dragging = false; document.removeEventListener("mousemove", dividerDrag, true); document.removeEventListener("mouseup", dividerDragEnd, true); document.body.style.cursor = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/698fe24365317fd75bda13d558b5e551b352b9c6/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
document.body.style.cursor = null;
function dividerDragEnd(element, dividerDrag, dividerDragEnd, event) { element.dragging = false; document.removeEventListener("mousemove", dividerDrag, true); document.removeEventListener("mouseup", dividerDragEnd, true);}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/87b1b60eb821e948fcb1f6f2c20521b54e9dba47/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
function dividerDragEnd(element, dividerDrag, dividerDragEnd, event) {
function dividerDragEnd(element, dividerDrag, dividerDragEnd, event) {
function dividerDragEnd(element, dividerDrag, dividerDragEnd, event) { element.dragging = false; document.removeEventListener("mousemove", dividerDrag, true); document.removeEventListener("mouseup", dividerDragEnd, true); document.body.style.cursor = null;}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
element.dragLastY = event.clientY + window.scrollY;
function dividerDragStart(element, dividerDrag, dividerDragEnd, event) { element.dragging = true; element.dragLastX = event.clientX + window.scrollX; document.addEventListener("mousemove", dividerDrag, true); document.addEventListener("mouseup", dividerDragEnd, true); event.preventDefault();}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/87c43d6ec3aad96a273f2997292509edc27c7e34/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
function dividerDragStart(element, dividerDrag, dividerDragEnd, event) {
function dividerDragStart(element, dividerDrag, dividerDragEnd, event, cursor) {
function dividerDragStart(element, dividerDrag, dividerDragEnd, event) { element.dragging = true; element.dragLastY = event.clientY + window.scrollY; element.dragLastX = event.clientX + window.scrollX; document.addEventListener("mousemove", dividerDrag, true); document.addEventListener("mouseup", dividerDragEnd, true); event.preventDefault();}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/87b1b60eb821e948fcb1f6f2c20521b54e9dba47/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
document.body.style.cursor = cursor;
function dividerDragStart(element, dividerDrag, dividerDragEnd, event) { element.dragging = true; element.dragLastY = event.clientY + window.scrollY; element.dragLastX = event.clientX + window.scrollX; document.addEventListener("mousemove", dividerDrag, true); document.addEventListener("mouseup", dividerDragEnd, true); event.preventDefault();}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/87b1b60eb821e948fcb1f6f2c20521b54e9dba47/debugger.js/buggy/third_party/WebKit/WebKitTools/Drosera/debugger.js
function dividerDragStart(element, dividerDrag, dividerDragEnd, event, cursor) {
function dividerDragStart(element, dividerDrag, dividerDragEnd, event, cursor) {
function dividerDragStart(element, dividerDrag, dividerDragEnd, event, cursor) { element.dragging = true; element.dragLastY = event.clientY + window.scrollY; element.dragLastX = event.clientX + window.scrollX; document.addEventListener("mousemove", dividerDrag, true); document.addEventListener("mouseup", dividerDragEnd, true); document.body.style.cursor = cursor; event.preventDefault();}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
if(obj[prop].length != undefined) document_object(prop_name /*+ "[]"*/,obj[prop][0], "array"); else
if(obj[prop].length!=undefined) { if(typeof(obj[prop][0])=="object") { document_object(prop_name /*+ "[]"*/,obj[prop][0], "array"); continue; } } else {
function document_properties(name, obj){ var prop_name; var count=0; var prop_num; prop_hdr=false; p=0; for(prop in obj) { prop_num=count++; if(min_ver && (!obj._property_ver_list || !obj._property_ver_list[prop_num])) { p++; continue; } if(obj._property_ver_list && (obj._property_ver_list[prop_num] < min_ver || obj._property_ver_list[prop_num] > max_ver)) { p++; continue; } prop_name=name + "." + prop; if(typeof(obj[prop])=="object" && prop!="socket") { if(obj[prop].length != undefined) // array ? document_object(prop_name /*+ "[]"*/,obj[prop][0], "array"); else document_object(prop_name,obj[prop]); continue; } if(!prop_hdr) { properties_header(name, obj); prop_hdr=true; } write("<tr valign=top>"); writeln("<td>" + prop.bold() + "<td>" + typeof(obj[prop]) ); if(!min_ver && obj._property_ver_list) writeln("<td>" + (obj._property_ver_list[p] ? verstr(obj._property_ver_list[p]) : "N/A")); if(obj._property_desc_list!=undefined) writeln("<td>" + obj._property_desc_list[p]); p++; total_properties++; }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/fa22bcb399a038ceb0acf48159f8b631ecf6949a/jsdocs.js/buggy/jsdocs.js
continue;
continue; }
function document_properties(name, obj){ var prop_name; var count=0; var prop_num; prop_hdr=false; p=0; for(prop in obj) { prop_num=count++; if(min_ver && (!obj._property_ver_list || !obj._property_ver_list[prop_num])) { p++; continue; } if(obj._property_ver_list && (obj._property_ver_list[prop_num] < min_ver || obj._property_ver_list[prop_num] > max_ver)) { p++; continue; } prop_name=name + "." + prop; if(typeof(obj[prop])=="object" && prop!="socket") { if(obj[prop].length != undefined) // array ? document_object(prop_name /*+ "[]"*/,obj[prop][0], "array"); else document_object(prop_name,obj[prop]); continue; } if(!prop_hdr) { properties_header(name, obj); prop_hdr=true; } write("<tr valign=top>"); writeln("<td>" + prop.bold() + "<td>" + typeof(obj[prop]) ); if(!min_ver && obj._property_ver_list) writeln("<td>" + (obj._property_ver_list[p] ? verstr(obj._property_ver_list[p]) : "N/A")); if(obj._property_desc_list!=undefined) writeln("<td>" + obj._property_desc_list[p]); p++; total_properties++; }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/fa22bcb399a038ceb0acf48159f8b631ecf6949a/jsdocs.js/buggy/jsdocs.js
if( (e instanceof String) || (typeof e == "string") ) {
if( (e instanceof String) || (typeof e == "string") || (typeof e == "number") ) {
function dom_add_child( node, e ) { if( hop_is_html_element( e ) ) { node.appendChild( e ); } else { if( (e instanceof String) || (typeof e == "string") ) { node.innerHTML = e; } else { if( sc_isPair( e ) ) { dom_add_child( node, e.cdr ); dom_add_child( node, e.car ); } } }}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7ed16b6b3da30e1f17ee676990fb936b829d9eac/hop-dom.js/clean/share/hop-dom.js
dom_add_child( node, e.car );
function dom_add_child( node, e ) { if( hop_is_html_element( e ) ) { node.appendChild( e ); } else { if( (e instanceof String) || (typeof e == "string") ) { node.innerHTML = e; } else { if( sc_isPair( e ) ) { dom_add_child( node, e.cdr ); dom_add_child( node, e.car ); } } }}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7ed16b6b3da30e1f17ee676990fb936b829d9eac/hop-dom.js/clean/share/hop-dom.js
if( (e instanceof HTMLElement) || (e instanceof Object && e.propertyIsEnumerable( "innerHTML" )) ) {
if( hop_isHTMLElement( e ) ) {
function dom_add_child( node, e ) { if( (e instanceof HTMLElement) || (e instanceof Object && e.propertyIsEnumerable( "innerHTML" )) ) { node.appendChild( e ); } else { if( (e instanceof String) || (typeof e == "string") ) { node.innerHTML = e; } else { if( sc_isPair( e ) ) { dom_add_child( node, e.cdr ); dom_add_child( node, e.car ); } } }}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-dom.js/buggy/share/hop-dom.js
if( e instanceof HTMLElement ) {
if( (e instanceof HTMLElement) || (e instanceof Object && e.propertyIsEnumerable( "innerHTML" )) ) {
function dom_add_child( node, e ) { if( e instanceof HTMLElement ) { node.appendChild( e ); } else { if( (e instanceof String) || (typeof e == "string") ) { node.innerHTML = e; } else { if( sc_isPair( e ) ) { dom_add_child( node, e.cdr ); dom_add_child( node, e.car ); } } }}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/58470c250b2dc3f6e6c18ee5d1d84bb163d47284/hop-dom.js/buggy/share/hop-dom.js
var i = args.length - 1;
var l = args.length; var i = 0;
function dom_create( tag, args ) { var el = document.createElement( tag ); var i = args.length - 1; while( i > 0 ) { var k = args[ i - 1 ]; if( sci_isKeyword( k ) ) { el.setAttribute( k.toJSString(), args[ i ] ); i -= 2; } else { dom_add_child( el, args[ i ] ); i--; } } if( i == 0 ) dom_add_child( el, args[ i ] ); return el;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7ed16b6b3da30e1f17ee676990fb936b829d9eac/hop-dom.js/clean/share/hop-dom.js
while( i > 0 ) { var k = args[ i - 1 ];
while( i < l ) { var k = args[ i ];
function dom_create( tag, args ) { var el = document.createElement( tag ); var i = args.length - 1; while( i > 0 ) { var k = args[ i - 1 ]; if( sci_isKeyword( k ) ) { el.setAttribute( k.toJSString(), args[ i ] ); i -= 2; } else { dom_add_child( el, args[ i ] ); i--; } } if( i == 0 ) dom_add_child( el, args[ i ] ); return el;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7ed16b6b3da30e1f17ee676990fb936b829d9eac/hop-dom.js/clean/share/hop-dom.js
el.setAttribute( k.toJSString(), args[ i ] ); i -= 2;
if( i < (l - 1) ) { var at = args[ i + 1 ]; if( (at instanceof String) || (typeof at == "string") ) { if( sc_isSymbol_immutable( at ) ) { el.setAttribute( k.toJSString(), sc_symbol2string_immutable( at ) ); } else { el.setAttribute( k.toJSString(), at ); } } else { el.setAttribute( k.toJSString(), at + "" ); } i += 2; }
function dom_create( tag, args ) { var el = document.createElement( tag ); var i = args.length - 1; while( i > 0 ) { var k = args[ i - 1 ]; if( sci_isKeyword( k ) ) { el.setAttribute( k.toJSString(), args[ i ] ); i -= 2; } else { dom_add_child( el, args[ i ] ); i--; } } if( i == 0 ) dom_add_child( el, args[ i ] ); return el;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7ed16b6b3da30e1f17ee676990fb936b829d9eac/hop-dom.js/clean/share/hop-dom.js
i--;
i++;
function dom_create( tag, args ) { var el = document.createElement( tag ); var i = args.length - 1; while( i > 0 ) { var k = args[ i - 1 ]; if( sci_isKeyword( k ) ) { el.setAttribute( k.toJSString(), args[ i ] ); i -= 2; } else { dom_add_child( el, args[ i ] ); i--; } } if( i == 0 ) dom_add_child( el, args[ i ] ); return el;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7ed16b6b3da30e1f17ee676990fb936b829d9eac/hop-dom.js/clean/share/hop-dom.js
if( i == 0 ) dom_add_child( el, args[ i ] );
function dom_create( tag, args ) { var el = document.createElement( tag ); var i = args.length - 1; while( i > 0 ) { var k = args[ i - 1 ]; if( sci_isKeyword( k ) ) { el.setAttribute( k.toJSString(), args[ i ] ); i -= 2; } else { dom_add_child( el, args[ i ] ); i--; } } if( i == 0 ) dom_add_child( el, args[ i ] ); return el;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/7ed16b6b3da30e1f17ee676990fb936b829d9eac/hop-dom.js/clean/share/hop-dom.js
if( all[ i ].className == name ) {
if( re.exec( all[ i ].className ) ) {
function dom_get_elements_by_class( document, name ) { var all = document.getElementsByTagName( "*" ); var res = new Array(); var n = 0; for( var i = 0; i < all.length; i++ ) { if( all[ i ].className == name ) { res[ n++ ] = all[ i ]; } } return sci_vector2list( res );}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/db8390d832c6e96c00ef33cffc0f79489c8578e4/hop-dom.js/buggy/share/hop-dom.js
function doMenu(td){
function doMenu(td) {
function doMenu(td){ clearTimeout(ti); td.style.backgroundColor=hlBgColor; td.style.color=hlColor; var i; var sT=""; var tda=new Array(); tda=td.id.split("_"); if(oTd!=null){ var tdo=new Array(); tdo=oTd.id.split("_"); for(i=1;i<tdo.length;i++){ sT+="_"+tdo[i]; if(tdo[i]!=tda[i]){ document.getElementById("td"+sT).style.backgroundColor=tdBgColor; document.getElementById("td"+sT).style.color=tdColor; if(document.getElementById("tbl"+sT)!=null) document.getElementById("tbl"+sT).style.visibility="hidden"; } } } oTd=td; sT="tbl"; for(i=1;i<tda.length;i++) sT+="_"+tda[i]; if(document.getElementById(sT)!=null) document.getElementById(sT).style.visibility="visible";}
3489 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3489/f6a8c7ae74d4ac02e1cbd8ad6e426d17ff68c0fd/menu_script.js/buggy/Documentation/Scripts/menu_script.js
td.style.backgroundColor=hlBgColor; td.style.color=hlColor;
td.style.backgroundColor = hlBgColor; td.style.color = hlColor;
function doMenu(td){ clearTimeout(ti); td.style.backgroundColor=hlBgColor; td.style.color=hlColor; var i; var sT=""; var tda=new Array(); tda=td.id.split("_"); if(oTd!=null){ var tdo=new Array(); tdo=oTd.id.split("_"); for(i=1;i<tdo.length;i++){ sT+="_"+tdo[i]; if(tdo[i]!=tda[i]){ document.getElementById("td"+sT).style.backgroundColor=tdBgColor; document.getElementById("td"+sT).style.color=tdColor; if(document.getElementById("tbl"+sT)!=null) document.getElementById("tbl"+sT).style.visibility="hidden"; } } } oTd=td; sT="tbl"; for(i=1;i<tda.length;i++) sT+="_"+tda[i]; if(document.getElementById(sT)!=null) document.getElementById(sT).style.visibility="visible";}
3489 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3489/f6a8c7ae74d4ac02e1cbd8ad6e426d17ff68c0fd/menu_script.js/buggy/Documentation/Scripts/menu_script.js
var sT=""; var tda=new Array(); tda=td.id.split("_"); if(oTd!=null){ var tdo=new Array(); tdo=oTd.id.split("_"); for(i=1;i<tdo.length;i++){ sT+="_"+tdo[i]; if(tdo[i]!=tda[i]){ document.getElementById("td"+sT).style.backgroundColor=tdBgColor; document.getElementById("td"+sT).style.color=tdColor; if(document.getElementById("tbl"+sT)!=null) document.getElementById("tbl"+sT).style.visibility="hidden";
var sT = ""; var tda = new Array(); tda = td.id.split("_"); if (oTd != null) { var tdo = new Array(); tdo = oTd.id.split("_"); for (i = 1; i < tdo.length; i++) { sT += "_" + tdo[i]; if (tdo[i] != tda[i]) { document.getElementById("td" + sT).style.backgroundColor = tdBgColor; document.getElementById("td" + sT).style.color = tdColor; if (document.getElementById("tbl" + sT) != null) document.getElementById("tbl" + sT).style.visibility = "hidden";
function doMenu(td){ clearTimeout(ti); td.style.backgroundColor=hlBgColor; td.style.color=hlColor; var i; var sT=""; var tda=new Array(); tda=td.id.split("_"); if(oTd!=null){ var tdo=new Array(); tdo=oTd.id.split("_"); for(i=1;i<tdo.length;i++){ sT+="_"+tdo[i]; if(tdo[i]!=tda[i]){ document.getElementById("td"+sT).style.backgroundColor=tdBgColor; document.getElementById("td"+sT).style.color=tdColor; if(document.getElementById("tbl"+sT)!=null) document.getElementById("tbl"+sT).style.visibility="hidden"; } } } oTd=td; sT="tbl"; for(i=1;i<tda.length;i++) sT+="_"+tda[i]; if(document.getElementById(sT)!=null) document.getElementById(sT).style.visibility="visible";}
3489 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3489/f6a8c7ae74d4ac02e1cbd8ad6e426d17ff68c0fd/menu_script.js/buggy/Documentation/Scripts/menu_script.js
oTd=td; sT="tbl"; for(i=1;i<tda.length;i++) sT+="_"+tda[i]; if(document.getElementById(sT)!=null) document.getElementById(sT).style.visibility="visible";
oTd = td; sT = "tbl"; for (i = 1; i < tda.length; i++) sT += "_" + tda[i]; if (document.getElementById(sT) != null) document.getElementById(sT).style.visibility = "visible";
function doMenu(td){ clearTimeout(ti); td.style.backgroundColor=hlBgColor; td.style.color=hlColor; var i; var sT=""; var tda=new Array(); tda=td.id.split("_"); if(oTd!=null){ var tdo=new Array(); tdo=oTd.id.split("_"); for(i=1;i<tdo.length;i++){ sT+="_"+tdo[i]; if(tdo[i]!=tda[i]){ document.getElementById("td"+sT).style.backgroundColor=tdBgColor; document.getElementById("td"+sT).style.color=tdColor; if(document.getElementById("tbl"+sT)!=null) document.getElementById("tbl"+sT).style.visibility="hidden"; } } } oTd=td; sT="tbl"; for(i=1;i<tda.length;i++) sT+="_"+tda[i]; if(document.getElementById(sT)!=null) document.getElementById(sT).style.visibility="visible";}
3489 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3489/f6a8c7ae74d4ac02e1cbd8ad6e426d17ff68c0fd/menu_script.js/buggy/Documentation/Scripts/menu_script.js
var baseURL = testRunnerConfig.baseURL;
Selenium.prototype.doOpen = function(newLocation) { if (baseURL && newLocation) { if (!newLocation.match(/^\w+:\/\//)) { if (baseURL[baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = baseURL + newLocation.substr(1); } else { newLocation = baseURL + newLocation; } } } return this.real_doOpen(newLocation);};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/593d8b5a6ee9a382e8159e89ccba637185daef8a/user-extensions.js/clean/src/content/selenium-src/scripts/user-extensions.js
if (baseURL && newLocation) {
if (this.baseURL && newLocation) {
Selenium.prototype.doOpen = function(newLocation) { if (baseURL && newLocation) { if (!newLocation.match(/^\w+:\/\//)) { if (baseURL[baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = baseURL + newLocation.substr(1); } else { newLocation = baseURL + newLocation; } } } return this.real_doOpen(newLocation);};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/987072c9677dabfd007fab08d4c76099ebb26d9e/selenium-runner.js/buggy/content/selenium-runner.js
if (baseURL[baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = baseURL + newLocation.substr(1);
if (this.baseURL[this.baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = this.baseURL + newLocation.substr(1);
Selenium.prototype.doOpen = function(newLocation) { if (baseURL && newLocation) { if (!newLocation.match(/^\w+:\/\//)) { if (baseURL[baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = baseURL + newLocation.substr(1); } else { newLocation = baseURL + newLocation; } } } return this.real_doOpen(newLocation);};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/987072c9677dabfd007fab08d4c76099ebb26d9e/selenium-runner.js/buggy/content/selenium-runner.js
newLocation = baseURL + newLocation;
newLocation = this.baseURL + newLocation;
Selenium.prototype.doOpen = function(newLocation) { if (baseURL && newLocation) { if (!newLocation.match(/^\w+:\/\//)) { if (baseURL[baseURL.length - 1] == '/' && newLocation[0] == '/') { newLocation = baseURL + newLocation.substr(1); } else { newLocation = baseURL + newLocation; } } } return this.real_doOpen(newLocation);};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/987072c9677dabfd007fab08d4c76099ebb26d9e/selenium-runner.js/buggy/content/selenium-runner.js
htmlTestRunner.currentTest.pauseInterval = waitTime;
currentTest.pauseInterval = waitTime;
Selenium.prototype.doPause = function(waitTime) { /** Wait for the specified amount of time (in milliseconds) * @param waitTime the amount of time to sleep (in milliseconds) */ // todo: should not refer to currentTest directly htmlTestRunner.currentTest.pauseInterval = waitTime;};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/afa54887f887b5863f6af88f1b5293c9af5683a3/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js
Selenium.prototype.doStoreValue = function(target) { value = this.page().bodyText(); storedVars[target] = value;
Selenium.prototype.doStoreValue = function(target, varName) { if (!varName) { value = this.page().bodyText(); storedVars[target] = value; return; } var element = this.page().findElement(target); storedVars[varName] = getInputValue(element);
Selenium.prototype.doStoreValue = function(target) { value = this.page().bodyText(); storedVars[target] = value;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/d8db9245266c7461b69b2dd154b88e1ff3b63024/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js
Selenium.prototype.doStoreValue = function(target) { value = this.page().bodyText(); storedVars[target] = value;
Selenium.prototype.doStoreValue = function(target, varName) { if (!varName) { value = this.page().bodyText(); storedVars[target] = value; return; } var element = this.page().findElement(target); storedVars[varName] = getInputValue(element);
Selenium.prototype.doStoreValue = function(target) { value = this.page().bodyText(); storedVars[target] = value;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/b747f5132fca16d5c8f19f893d8c4a5cb8b1fc46/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js
currentChannel = selChannel;
function downloadMovie(){ if (window.screen.width >= 800) { var selChannel = document.channelselector.channel.selectedIndex; if (selChannel >= 0) { var channel = document.channelselector.channel.options[selChannel].value; var pos = channel.indexOf("%2f"); if (pos >= 0) { var fileName = channel.substr(pos + 3, channel.length - pos - 3); fileName = unescape(fileName); document.location = "/rootX/" + fileName; } else alert("Sorry, no valid filename"); } else alert("Please select a movie first!"); } else alert("Movie download is not supported on this device.");}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/3be406a5d64f3f80b4175dfe8914360e64ffb26a/index.js/buggy/tuxbox/enigma/data/htdocs/index.js
alert("downloading:"+fileName);
fileName = unescape(fileName);
function downloadMovie(){ if (window.screen.width >= 800) { var selChannel = document.channelselector.channel.selectedIndex; if (selChannel >= 0) { var channel = document.channelselector.channel.options[selChannel].value; var pos = channel.indexOf("%2f"); if (pos >= 0) { var fileName = channel.substr(pos + 3, channel.length - pos - 3); alert("downloading:"+fileName); document.location = "/rootX/" + fileName; } else alert("Sorry, no valid filename"); } else alert("Please select a movie first!"); } else alert("Movie download is not supported on this device.");}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/a546365ffaf374a757209621b1e5875df5c0570d/index.js/buggy/tuxbox/enigma/data/htdocs/index.js
var a = this.val; for (var i = 0; i < a.length; i++) { sc_doWriteCircle(p, a[i], symb);
for (var i = 0; i < this.length; i++) { sc_doWriteCircle(p, this[i], symb);
sc_Vector.prototype.doWriteCircle = function(p, symb) { if (this[symb + "use"]) { // use-flag is set. Just use it. var nb = this[symb + "nb"]; if (this[symb]-- === 0) { // if we are the last use. remove all fields. delete this[symb]; delete this[symb + "nb"]; delete this[symb + "use"]; } p.appendJSString('#' + nb + '#'); return; } if (this[symb]-- === 0) { // if we are the last use. remove all fields. delete this[symb]; delete this[symb + "nb"]; delete this[symb + "use"]; } if (this[symb] !== undefined) { // implies > 0 this[symb + "use"] = true; p.appendJSString('#' + this[symb + "nb"] + '='); } p.appendJSString("#("); var a = this.val; for (var i = 0; i < a.length; i++) { sc_doWriteCircle(p, a[i], symb); p.appendJSString(" "); } p.appendJSString(")");}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/18d6433ca5dc044045f901c8f298c40f81f4e1a6/runtime.js/clean/scheme2js/runtime/runtime.js
function dq_is_disabled(snmp_query_id, snmp_index) { dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { if (created_graphs[snmp_query_graph_id][i] == snmp_index) { return true; } } return false;}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_is_disabled(snmp_query_id, snmp_index) { dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { if (created_graphs[snmp_query_graph_id][i] == snmp_index) { return true; } } return false;}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_reset_deps(snmp_query_id, num_columns) { var prefix = 'sg_' + snmp_query_id + '_' for (var i = 0; i < document.chk.elements.length; i++) { if (document.chk.elements[i].name.substr( 0, prefix.length ) == prefix) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + document.chk.elements[i].name.substr(prefix.length) + '_' + j); lineid.style.color = '000000'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + document.chk.elements[i].name.substr(prefix.length)); chkbx.style.visibility = 'visible'; } }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_reset_deps(snmp_query_id, num_columns) { var prefix = 'sg_' + snmp_query_id + '_' for (var i = 0; i < document.chk.elements.length; i++) { if (document.chk.elements[i].name.substr( 0, prefix.length ) == prefix) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + document.chk.elements[i].name.substr(prefix.length) + '_' + j); lineid.style.color = '000000'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + document.chk.elements[i].name.substr(prefix.length)); chkbx.style.visibility = 'visible'; } }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_select_line(snmp_query_id, snmp_index, update) { if (dq_is_disabled(snmp_query_id, snmp_index)) { return; } if (document.getElementById) { msgid = document.getElementById('sg_' + snmp_query_id + '_' + snmp_index); lineid = document.getElementById('line'+ snmp_query_id + '_' + snmp_index); if (!update) msgid.checked = !msgid.checked; dq_update_selection_indicators(); }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_select_line(snmp_query_id, snmp_index, update) { if (dq_is_disabled(snmp_query_id, snmp_index)) { return; } if (document.getElementById) { msgid = document.getElementById('sg_' + snmp_query_id + '_' + snmp_index); lineid = document.getElementById('line'+ snmp_query_id + '_' + snmp_index); if (!update) msgid.checked = !msgid.checked; dq_update_selection_indicators(); }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_select_line(snmp_query_id, snmp_index, update) { if (dq_is_disabled(snmp_query_id, snmp_index)) { return; } if (document.getElementById) { msgid = document.getElementById('sg_' + snmp_query_id + '_' + snmp_index); lineid = document.getElementById('line'+ snmp_query_id + '_' + snmp_index); if (!update) msgid.checked = !msgid.checked; dq_update_selection_indicators(); }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_update_deps(snmp_query_id, num_columns) { dq_reset_deps(snmp_query_id, num_columns); dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i] + '_' + j); lineid.style.color = '999999'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); chkbx.style.visibility = 'hidden'; chkbx.checked = false; lineid = document.getElementById('line' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); lineid.style.backgroundColor = ''; }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_update_deps(snmp_query_id, num_columns) { dq_reset_deps(snmp_query_id, num_columns); dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i] + '_' + j); lineid.style.color = '999999'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); chkbx.style.visibility = 'hidden'; chkbx.checked = false; lineid = document.getElementById('line' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); lineid.style.backgroundColor = ''; }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
lineid.style.color = '999999';
if (lineid) { lineid.style.color = '999999' };
function dq_update_deps(snmp_query_id, num_columns) { dq_reset_deps(snmp_query_id, num_columns); dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i] + '_' + j); lineid.style.color = '999999'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); chkbx.style.visibility = 'hidden'; chkbx.checked = false; lineid = document.getElementById('line' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); lineid.style.backgroundColor = ''; }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_update_deps(snmp_query_id, num_columns) { dq_reset_deps(snmp_query_id, num_columns); dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i] + '_' + j); lineid.style.color = '999999'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); chkbx.style.visibility = 'hidden'; chkbx.checked = false; lineid = document.getElementById('line' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); lineid.style.backgroundColor = ''; }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
chkbx.style.visibility = 'hidden'; chkbx.checked = false;
if ( chkbx ) { chkbx.style.visibility = 'hidden'; chkbx.checked = false; }
function dq_update_deps(snmp_query_id, num_columns) { dq_reset_deps(snmp_query_id, num_columns); dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i] + '_' + j); lineid.style.color = '999999'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); chkbx.style.visibility = 'hidden'; chkbx.checked = false; lineid = document.getElementById('line' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); lineid.style.backgroundColor = ''; }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
lineid.style.backgroundColor = '';
if (lineid) { lineid.style.backgroundColor = '' };
function dq_update_deps(snmp_query_id, num_columns) { dq_reset_deps(snmp_query_id, num_columns); dropdown = document.getElementById('sgg_' + snmp_query_id); var snmp_query_graph_id = dropdown.value for (var i = 0; i < created_graphs[snmp_query_graph_id].length; i++) { for (var j = 0; j < num_columns; j++) { lineid = document.getElementById('text' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i] + '_' + j); lineid.style.color = '999999'; } chkbx = document.getElementById('sg_' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); chkbx.style.visibility = 'hidden'; chkbx.checked = false; lineid = document.getElementById('line' + snmp_query_id + '_' + created_graphs[snmp_query_graph_id][i]); lineid.style.backgroundColor = ''; }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_update_selection_indicators() { if (document.getElementById) { there_are_any_unchecked_ones = false; for (var j = 0; j < document.chk.elements.length; j++) { if( document.chk.elements[j].name.substr( 0, 3 ) == 'sg_') { if (document.chk.elements[j].checked == false) { there_are_any_unchecked_ones = true; } lineid = document.getElementById('line'+ document.chk.elements[j].name.substr(3)); if (document.chk.elements[j].checked) { lineid.style.backgroundColor = 'gold'; }else{ lineid.style.backgroundColor = ''; } } } }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
there_are_any_unchecked_ones = true;
there_are_any_unchecked_ones = true;
function dq_update_selection_indicators() { if (document.getElementById) { there_are_any_unchecked_ones = false; for (var j = 0; j < document.chk.elements.length; j++) { if( document.chk.elements[j].name.substr( 0, 3 ) == 'sg_') { if (document.chk.elements[j].checked == false) { there_are_any_unchecked_ones = true; } lineid = document.getElementById('line'+ document.chk.elements[j].name.substr(3)); if (document.chk.elements[j].checked) { lineid.style.backgroundColor = 'gold'; }else{ lineid.style.backgroundColor = ''; } } } }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_update_selection_indicators() { if (document.getElementById) { there_are_any_unchecked_ones = false; for (var j = 0; j < document.chk.elements.length; j++) { if( document.chk.elements[j].name.substr( 0, 3 ) == 'sg_') { if (document.chk.elements[j].checked == false) { there_are_any_unchecked_ones = true; } lineid = document.getElementById('line'+ document.chk.elements[j].name.substr(3)); if (document.chk.elements[j].checked) { lineid.style.backgroundColor = 'gold'; }else{ lineid.style.backgroundColor = ''; } } } }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
function dq_update_selection_indicators() { if (document.getElementById) { there_are_any_unchecked_ones = false; for (var j = 0; j < document.chk.elements.length; j++) { if( document.chk.elements[j].name.substr( 0, 3 ) == 'sg_') { if (document.chk.elements[j].checked == false) { there_are_any_unchecked_ones = true; } lineid = document.getElementById('line'+ document.chk.elements[j].name.substr(3)); if (document.chk.elements[j].checked) { lineid.style.backgroundColor = 'gold'; }else{ lineid.style.backgroundColor = ''; } } } }}
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8fa63974a207f3d2d49d27ce4722677b1cce938e/layout.js/clean/trunk/cacti/include/layout.js
if ($chk(this.limit[z][1]) && this.value.now[z] > this.limit[z][1]){
if ($chk(this.limit[z][1]) && (this.value.now[z] > this.limit[z][1])){
drag: function(event){ this.out = false; this.mouse.now = event.page; for (var z in this.options.modifiers){ this.value.now[z] = event.page[z] - this.mouse.pos[z]; if (this.limit[z]){ if ($chk(this.limit[z][1]) && this.value.now[z] > this.limit[z][1]){ this.value.now[z] = this.limit[z][1]; this.out = true; } else if ($chk(this.limit[z][0]) && this.value.now[z] < this.limit[z][0]){ this.value.now[z] = this.limit[z][0]; this.out = true; } } this.element.setStyle(this.options.modifiers[z], this.value.now[z] + this.options.unit); } this.fireEvent('onDrag', this.element); event.stop(); },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/361df8b129fb4443f041322f630ea9deff2516cd/Drag.Base.js/buggy/Drag/Drag.Base.js
} else if ($chk(this.limit[z][0]) && this.value.now[z] < this.limit[z][0]){
} else if ($chk(this.limit[z][0]) && (this.value.now[z] < this.limit[z][0])){
drag: function(event){ this.out = false; this.mouse.now = event.page; for (var z in this.options.modifiers){ this.value.now[z] = event.page[z] - this.mouse.pos[z]; if (this.limit[z]){ if ($chk(this.limit[z][1]) && this.value.now[z] > this.limit[z][1]){ this.value.now[z] = this.limit[z][1]; this.out = true; } else if ($chk(this.limit[z][0]) && this.value.now[z] < this.limit[z][0]){ this.value.now[z] = this.limit[z][0]; this.out = true; } } this.element.setStyle(this.options.modifiers[z], this.value.now[z] + this.options.unit); } this.fireEvent('onDrag', this.element); event.stop(); },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/361df8b129fb4443f041322f630ea9deff2516cd/Drag.Base.js/buggy/Drag/Drag.Base.js
if ($chk(this.limit[z][1]) && this.value.now[z] > this.limit[z][1]){
if ($chk(this.limit[z][1]) && (this.value.now[z] > this.limit[z][1])){
drag: function(event){ this.out = false; this.mouse.now = event.page; for (var z in this.options.modifiers){ this.value.now[z] = event.page[z] - this.mouse.pos[z]; if (this.limit[z]){ if ($chk(this.limit[z][1]) && this.value.now[z] > this.limit[z][1]){ this.value.now[z] = this.limit[z][1]; this.out = true; } else if ($chk(this.limit[z][0]) && this.value.now[z] < this.limit[z][0]){ this.value.now[z] = this.limit[z][0]; this.out = true; } } this.element.setStyle(this.options.modifiers[z], this.value.now[z] + this.options.unit); } this.fireEvent('onDrag', this.element); event.stop(); },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/361df8b129fb4443f041322f630ea9deff2516cd/Drag.Base.js/clean/Drag/Drag.Base.js
} else if ($chk(this.limit[z][0]) && this.value.now[z] < this.limit[z][0]){
} else if ($chk(this.limit[z][0]) && (this.value.now[z] < this.limit[z][0])){
drag: function(event){ this.out = false; this.mouse.now = event.page; for (var z in this.options.modifiers){ this.value.now[z] = event.page[z] - this.mouse.pos[z]; if (this.limit[z]){ if ($chk(this.limit[z][1]) && this.value.now[z] > this.limit[z][1]){ this.value.now[z] = this.limit[z][1]; this.out = true; } else if ($chk(this.limit[z][0]) && this.value.now[z] < this.limit[z][0]){ this.value.now[z] = this.limit[z][0]; this.out = true; } } this.element.setStyle(this.options.modifiers[z], this.value.now[z] + this.options.unit); } this.fireEvent('onDrag', this.element); event.stop(); },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/361df8b129fb4443f041322f630ea9deff2516cd/Drag.Base.js/clean/Drag/Drag.Base.js
this.updateScale();
this.updateScale();
draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); if (!this.element) { this.element = document.createElement("div"); this.div.style.right = "3px"; this.div.style.bottom = "2em"; this.div.style.left = ""; this.div.style.top = ""; this.div.style.display = "block"; this.div.style.position = "absolute"; this.element.style.fontSize="smaller"; this.div.appendChild(this.element); } this.map.events.register( 'moveend', this, this.updateScale); this.updateScale(); return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/a171ae13b63105ef9e01913a44b3e480486769ef/Scale.js/clean/lib/OpenLayers/Control/Scale.js
this.map.events.register( "click", this, this.defaultClick );
draw: function() { this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); this.map.events.register( "mouseout", this, this.defaultMouseOut ); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/2f9c7dfbd35e927583a66644a059ccb84b7338bf/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
this.map.events.register( "mouseout", this, this.defaultMouseOut );
draw: function() { this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); //this.map.events.register( "mouseout", this, this.defaultMouseUp ); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7683e0853a92900836d3fc75169ddf6d5bf0b478/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
this.updateScale();
this.updateScale();
draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); if (!this.element) { this.element = document.createElement("div"); this.div.style.right = "3px"; this.div.style.bottom = "2em"; this.div.style.left = ""; this.div.style.top = ""; this.div.style.display = "block"; this.div.style.position = "absolute"; this.element.style.fontSize="smaller"; this.div.appendChild(this.element); } this.map.events.register( 'moveend', this, this.updateScale); this.updateScale(); return this.div; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/a171ae13b63105ef9e01913a44b3e480486769ef/Scale.js/clean/lib/OpenLayers/Control/Scale.js
OpenLayers.Event.observe(window, "DOMMouseScroll", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(window, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(document, "mousewheel", this.onWheelEvent.bindAsEventListener(this));
draw: function() { this.map.events.register( "click", this, this.defaultClick ); this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); this.map.events.register( "mouseout", this, this.defaultMouseOut ); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/9c6817f5d6e4b39058416183c6aaa041a68dcace/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
this.setBackgroundColor(); this.setOpacity();
this.setBackgroundColor(); this.setOpacity();
draw: function(px) { OpenLayers.Popup.Anchored.prototype.draw.apply(this, arguments); // make the content Div var contentSize = this.size.copyOf(); contentSize.h -= (2 * OpenLayers.Popup.AnchoredBubble.CORNER_SIZE); var id = this.div.id + "-contentDiv"; this.contentDiv = OpenLayers.Util.createDiv(id, null, contentSize, null, "relative", null, "auto"); this.div.appendChild(this.contentDiv); this.setContentHTML(); this.setRicoCorners(true); //set the popup color and opacity this.setBackgroundColor(); this.setOpacity(); return this.div; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/08b8a7af76902fcb836b51c593917f4730bfe456/AnchoredBubble.js/buggy/lib/OpenLayers/Popup/AnchoredBubble.js
p = this.options.snap(p[0],p[1]);
p = this.options.snap(p[0],p[1],this);
draw: function(point) { var pos = Position.cumulativeOffset(this.element); var d = this.currentDelta(); pos[0] -= d[0]; pos[1] -= d[1]; if(this.options.scroll && (this.options.scroll != window)) { pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft; pos[1] -= this.options.scroll.scrollTop-this.originalScrollTop; } var p = [0,1].map(function(i){ return (point[i]-pos[i]-this.offset[i]) }.bind(this)); if(this.options.snap) { if(typeof this.options.snap == 'function') { p = this.options.snap(p[0],p[1]); } else { if(this.options.snap instanceof Array) { p = p.map( function(v, i) { return Math.round(v/this.options.snap[i])*this.options.snap[i] }.bind(this)) } else { p = p.map( function(v) { return Math.round(v/this.options.snap)*this.options.snap }.bind(this)) } }} var style = this.element.style; if((!this.options.constraint) || (this.options.constraint=='horizontal')) style.left = p[0] + "px"; if((!this.options.constraint) || (this.options.constraint=='vertical')) style.top = p[1] + "px"; if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/cfd5d1ba1eb0b30f8716224c42ca395efd0a7759/dragdrop.js/buggy/src/dragdrop.js
this.img = OpenLayers.Util.createImage(null, this.position, this.size, this.url, "absolute"); this.layer.div.appendChild(this.img);
this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null, this.position, this.size, this.url, "absolute"); this.layer.div.appendChild(this.imgDiv);
draw:function() { this.img = OpenLayers.Util.createImage(null, this.position, this.size, this.url, "absolute"); this.layer.div.appendChild(this.img); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/836b47c192b0349467fb6eb380c1c7f3bc6ec87f/Image.js/buggy/lib/OpenLayers/Tile/Image.js
OpenLayers.Control.prototype.draw.apply(this, arguments);
draw: function() { OpenLayers.Control.MouseDefaults.prototype.draw.apply(this, arguments); this.buttons = new Object(); var sz = new OpenLayers.Size(28,28); var centered = this.position; this._addButton("zoombox", "drag-rectangle-off.png", "drag-rectangle-on.png", centered, sz, "Shift->Drag to zoom to area"); centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0)); this._addButton("pan", "panning-hand-off.png", "panning-hand-on.png", centered, sz, "Drag the map to pan."); centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0)); this.switchModeTo("pan"); return this.div; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/83f26a9336e398f1c53a4073fdb101a76bb72f93/MouseToolbar.js/buggy/lib/OpenLayers/Control/MouseToolbar.js
OpenLayers.Tile.prototype.draw.apply(this, arguments);
if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } if (!OpenLayers.Tile.prototype.draw.apply(this, arguments)) { return false; }
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/Image.js/clean/lib/OpenLayers/Tile/Image.js
if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position);
this.url = this.layer.getURL(this.bounds); if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ;
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/Image.js/clean/lib/OpenLayers/Tile/Image.js
this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } }
this.drawn = true; return true;
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/Image.js/clean/lib/OpenLayers/Tile/Image.js
OpenLayers.Tile.prototype.draw.apply(this, arguments);
if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } if (!OpenLayers.Tile.prototype.draw.apply(this, arguments)) { return false; }
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/Image.js/buggy/lib/OpenLayers/Tile/Image.js
if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position);
this.url = this.layer.getURL(this.bounds); if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ;
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/Image.js/buggy/lib/OpenLayers/Tile/Image.js
this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } }
this.drawn = true; return true;
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/Image.js/buggy/lib/OpenLayers/Tile/Image.js
this.drawn = true;
this.clear(); return ((this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.bounds.intersectsBounds(this.layer.maxExtent, false))) && !(this.layer.buffer == 0 && !this.bounds.intersectsBounds(this.layer.map.getExtent(), false)));
draw:function() { this.drawn = true; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/Tile.js/buggy/lib/OpenLayers/Tile.js
if (transparent) {
if (false) {
draw:function(transparent) { if (transparent) { this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null, this.position, this.size, this.url, "absolute"); } else { this.imgDiv = OpenLayers.Util.createImage(null, this.position, this.size, this.url, "absolute"); } this.layer.div.appendChild(this.imgDiv); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/Image.js/buggy/lib/OpenLayers/Tile/Image.js
draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); OpenLayers.Control.MouseDefaults.prototype.draw.apply(this, arguments); this.buttons = new Object(); var sz = new OpenLayers.Size(28,28); var centered = this.position; this._addButton("zoombox", "drag-rectangle-off.png", "drag-rectangle-on.png", centered, sz, "Shift->Drag to zoom to area"); centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0)); this._addButton("pan", "panning-hand-off.png", "panning-hand-on.png", centered, sz, "Drag the map to pan."); centered = centered.add((this.direction == "vertical" ? 0 : sz.w), (this.direction == "vertical" ? sz.h : 0)); this.switchModeTo("pan"); return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/4cac0a24ea34e62ec5a5e9f9a66c18996f457dc0/MouseToolbar.js/buggy/lib/OpenLayers/Control/MouseToolbar.js
if(this.options.scroll && (this.options.scroll != window)) {
if(this.options.scroll && (this.options.scroll != window && this._isScrollChild)) {
draw: function(point) { var pos = Position.cumulativeOffset(this.element); var d = this.currentDelta(); pos[0] -= d[0]; pos[1] -= d[1]; if(this.options.scroll && (this.options.scroll != window)) { pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft; pos[1] -= this.options.scroll.scrollTop-this.originalScrollTop; } var p = [0,1].map(function(i){ return (point[i]-pos[i]-this.offset[i]) }.bind(this)); if(this.options.snap) { if(typeof this.options.snap == 'function') { p = this.options.snap(p[0],p[1],this); } else { if(this.options.snap instanceof Array) { p = p.map( function(v, i) { return Math.round(v/this.options.snap[i])*this.options.snap[i] }.bind(this)) } else { p = p.map( function(v) { return Math.round(v/this.options.snap)*this.options.snap }.bind(this)) } }} var style = this.element.style; if((!this.options.constraint) || (this.options.constraint=='horizontal')) style.left = p[0] + "px"; if((!this.options.constraint) || (this.options.constraint=='vertical')) style.top = p[1] + "px"; if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/b51366b89d56e2df70072b6a393867ada982a304/dragdrop.js/clean/src/dragdrop.js
var sz = new OpenLayers.Size(18,18);
var sz = new OpenLayers.Size(28,28);
draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); this.buttons = new Object(); this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); this.map.events.register( "mouseout", this, this.defaultMouseOut ); var sz = new OpenLayers.Size(18,18); var centered = new OpenLayers.Pixel(100, 20); this._addButton("zoombox", "west-mini.png", "east-mini.png", centered, sz); return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
this._addButton("zoombox", "west-mini.png", "east-mini.png", centered, sz);
this._addButton("zoombox", "drag-rectangle-off.png", "drag-rectangle-on.png", centered, sz); this._addButton("pan", "panning-hand-off.png", "panning-hand-on.png", new OpenLayers.Pixel(100,47), sz);
draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); this.buttons = new Object(); this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); this.map.events.register( "mouseout", this, this.defaultMouseOut ); var sz = new OpenLayers.Size(18,18); var centered = new OpenLayers.Pixel(100, 20); this._addButton("zoombox", "west-mini.png", "east-mini.png", centered, sz); return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
this._addButton("zoomout", "zoom-minus-mini.png", centered.add(0, sz.h*4+5), sz);
this._addButton("zoomworld", "zoom-world-mini.png", centered.add(0, sz.h*4+5), sz); this._addButton("zoomout", "zoom-minus-mini.png", centered.add(0, sz.h*5+5), sz);
draw: function(px) { // initialize our internal div OpenLayers.Control.prototype.draw.apply(this, arguments); px = this.position; // place the controls this.buttons = new Array(); var sz = new OpenLayers.Size(18,18); var centered = new OpenLayers.Pixel(px.x+sz.w/2, px.y); this._addButton("panup", "north-mini.png", centered, sz); px.y = centered.y+sz.h; this._addButton("panleft", "west-mini.png", px, sz); this._addButton("panright", "east-mini.png", px.add(sz.w, 0), sz); this._addButton("pandown", "south-mini.png", centered.add(0, sz.h*2), sz); this._addButton("zoomin", "zoom-plus-mini.png", centered.add(0, sz.h*3+5), sz); this._addButton("zoomout", "zoom-minus-mini.png", centered.add(0, sz.h*4+5), sz); return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/cdd26c1df23791ffc4e172c84fd58753580904b5/PanZoom.js/clean/lib/OpenLayers/Control/PanZoom.js
OpenLayers.Util.clearArray(this);
this.clear();
draw:function() { if (this.drawn) { OpenLayers.Util.clearArray(this); } OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeaturesForRegion(this.requestSuccess); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/9f9c366154d8d1e3e82af85214ec3378f8745ecf/WFS.js/clean/lib/OpenLayers/Tile/WFS.js
OpenLayers.Util.clearArray(this);
this.clear();
draw:function() { if (this.drawn) { OpenLayers.Util.clearArray(this); } OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeaturesForRegion(this.requestSuccess); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/9f9c366154d8d1e3e82af85214ec3378f8745ecf/WFS.js/buggy/lib/OpenLayers/Tile/WFS.js
quickElement('td', tableRow, ' ', 'bgcolor','#f3f3f3');
var _cell = quickElement('td', tableRow, ' '); _cell.style.backgroundColor = '#f3f3f3';
draw: function(month, year, div_id, callback) { // month = 1-12, year = 1-9999 month = parseInt(month); year = parseInt(year); var calDiv = document.getElementById(div_id); removeChildren(calDiv); var calTable = document.createElement('table'); quickElement('caption', calTable, CalendarNamespace.monthsOfYear[month-1] + ' ' + year); var tableBody = quickElement('tbody', calTable); // Draw days-of-week header var tableRow = quickElement('tr', tableBody); for (var i = 0; i < 7; i++) { quickElement('th', tableRow, CalendarNamespace.daysOfWeek[i]); } var startingPos = new Date(year, month-1, 1).getDay(); var days = CalendarNamespace.getDaysInMonth(month, year); // Draw blanks before first of month tableRow = quickElement('tr', tableBody); for (var i = 0; i < startingPos; i++) { quickElement('td', tableRow, ' ', 'bgcolor','#f3f3f3'); } // Draw days of month var currentDay = 1; for (var i = startingPos; currentDay <= days; i++) { if (i%7 == 0 && currentDay != 1) { tableRow = quickElement('tr', tableBody); } var cell = quickElement('td', tableRow, ''); quickElement('a', cell, currentDay, 'href', 'javascript:void(' + callback + '('+year+','+month+','+currentDay+'));'); currentDay++; } // Draw blanks after end of month (optional, but makes for valid code) while (tableRow.childNodes.length < 7) { quickElement('td', tableRow, ' ', 'bgcolor','#f3f3f3'); } calDiv.appendChild(calTable); }
1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/d8b83674940282c082bb3d2fce3f19bfd1589988/calendar.js/buggy/django/contrib/admin/media/js/calendar.js
quickElement('td', tableRow, ' ', 'bgcolor','#f3f3f3');
var _cell = quickElement('td', tableRow, ' '); _cell.style.backgroundColor = '#f3f3f3';
draw: function(month, year, div_id, callback) { // month = 1-12, year = 1-9999 month = parseInt(month); year = parseInt(year); var calDiv = document.getElementById(div_id); removeChildren(calDiv); var calTable = document.createElement('table'); quickElement('caption', calTable, CalendarNamespace.monthsOfYear[month-1] + ' ' + year); var tableBody = quickElement('tbody', calTable); // Draw days-of-week header var tableRow = quickElement('tr', tableBody); for (var i = 0; i < 7; i++) { quickElement('th', tableRow, CalendarNamespace.daysOfWeek[i]); } var startingPos = new Date(year, month-1, 1).getDay(); var days = CalendarNamespace.getDaysInMonth(month, year); // Draw blanks before first of month tableRow = quickElement('tr', tableBody); for (var i = 0; i < startingPos; i++) { quickElement('td', tableRow, ' ', 'bgcolor','#f3f3f3'); } // Draw days of month var currentDay = 1; for (var i = startingPos; currentDay <= days; i++) { if (i%7 == 0 && currentDay != 1) { tableRow = quickElement('tr', tableBody); } var cell = quickElement('td', tableRow, ''); quickElement('a', cell, currentDay, 'href', 'javascript:void(' + callback + '('+year+','+month+','+currentDay+'));'); currentDay++; } // Draw blanks after end of month (optional, but makes for valid code) while (tableRow.childNodes.length < 7) { quickElement('td', tableRow, ' ', 'bgcolor','#f3f3f3'); } calDiv.appendChild(calTable); }
1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/d8b83674940282c082bb3d2fce3f19bfd1589988/calendar.js/buggy/django/contrib/admin/media/js/calendar.js
null, this.position, this.size, this.url);
null, this.position, this.size, this.url);
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } this.imgDiv.style.display = "none"; if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/512465037ba17400724b9c51ab7fd8155be53645/Image.js/clean/lib/OpenLayers/Tile/Image.js
null, this.position, this.size) ;
null, this.position, this.size) ;
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } this.imgDiv.style.display = "none"; if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this.url); } else { this.imgDiv.src = this.url; OpenLayers.Util.modifyDOMElement(this.imgDiv, null, this.position, this.size) ; } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/512465037ba17400724b9c51ab7fd8155be53645/Image.js/clean/lib/OpenLayers/Tile/Image.js
if (this.drawn) { this.clear();
if (!OpenLayers.Tile.prototype.draw.apply(this, arguments)) { return false;
draw:function() { if (this.drawn) { this.clear(); } OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeaturesForRegion(this.requestSuccess); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/WFS.js/clean/lib/OpenLayers/Tile/WFS.js
OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeaturesForRegion(this.requestSuccess); }
this.loadFeaturesForRegion(this.requestSuccess); this.drawn = true; return true;
draw:function() { if (this.drawn) { this.clear(); } OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeaturesForRegion(this.requestSuccess); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7e9eef8d075fa88068923404fa67c84bba79643e/WFS.js/clean/lib/OpenLayers/Tile/WFS.js
this.originalX = this.element.offsetLeft - this.currentLeft() - this.originalLeft; this.originalY = this.element.offsetTop - this.currentTop() - this.originalTop;
draw: function(event) { var style = this.element.style; this.originalX = this.element.offsetLeft - this.currentLeft() - this.originalLeft; this.originalY = this.element.offsetTop - this.currentTop() - this.originalTop; if((!this.options.constraint) || (this.options.constraint=='horizontal')) style.left = ((event.clientX - this.originalX) - this.offsetX) + "px"; if((!this.options.constraint) || (this.options.constraint=='vertical')) style.top = ((event.clientY - this.originalY) - this.offsetY) + "px"; if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js
style.left = ((event.clientX - this.originalX) - this.offsetX) + "px";
style.left = (pointer[0] - offsets[0] - this.offsetX) + "px";
draw: function(event) { var style = this.element.style; this.originalX = this.element.offsetLeft - this.currentLeft() - this.originalLeft; this.originalY = this.element.offsetTop - this.currentTop() - this.originalTop; if((!this.options.constraint) || (this.options.constraint=='horizontal')) style.left = ((event.clientX - this.originalX) - this.offsetX) + "px"; if((!this.options.constraint) || (this.options.constraint=='vertical')) style.top = ((event.clientY - this.originalY) - this.offsetY) + "px"; if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js
style.top = ((event.clientY - this.originalY) - this.offsetY) + "px";
style.top = (pointer[1] - offsets[1] - this.offsetY) + "px";
draw: function(event) { var style = this.element.style; this.originalX = this.element.offsetLeft - this.currentLeft() - this.originalLeft; this.originalY = this.element.offsetTop - this.currentTop() - this.originalTop; if((!this.options.constraint) || (this.options.constraint=='horizontal')) style.left = ((event.clientX - this.originalX) - this.offsetX) + "px"; if((!this.options.constraint) || (this.options.constraint=='vertical')) style.top = ((event.clientY - this.originalY) - this.offsetY) + "px"; if(style.visibility=="hidden") style.visibility = ""; // fix gecko rendering },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js
this.drawn = true;
this.clear(); return ((this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.bounds.intersectsBounds(this.layer.maxExtent, false))) && !(this.layer.buffer == 0 && !this.bounds.intersectsBounds(this.layer.map.getExtent(), false)));
draw:function() { this.drawn = true; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/Tile.js/buggy/lib/OpenLayers/Tile.js
centered = centered.addY(sz.h); this._addButton("zoomLevel"+i, "zoom-world-mini.png", centered, sz);
centered = centered.addY(sz.h); this._addButton("zoomLevel"+i, "zoom-world-mini.png", centered, sz);
draw: function() { // initialize our internal div OpenLayers.Control.prototype.draw.apply(this); // place the controls this.buttons = new Array(); var sz = new OpenLayers.Size(18,18); var xy = new OpenLayers.Pixel(4,4); var centered = new OpenLayers.Pixel(xy.x+sz.w/2, xy.y); this._addButton("panup", "north-mini.png", centered, sz); xy.y = centered.y+sz.h; this._addButton("panleft", "west-mini.png", xy, sz); this._addButton("panright", "east-mini.png", xy.addX(sz.w), sz); this._addButton("pandown", "south-mini.png", centered.addY(sz.h*2), sz); this._addButton("zoomin", "zoom-plus-mini.png", centered.addY(sz.h*3), sz); centered = centered.addY(sz.h*3); for (var i=this.map.getZoomLevels(); i--; i>=0) { centered = centered.addY(sz.h); this._addButton("zoomLevel"+i, "zoom-world-mini.png", centered, sz); } this._addButton("zoomout", "zoom-minus-mini.png", centered.addY(sz.h), sz); return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/89d7a7d852501bcd834a2b02a6dc989710848a58/PanZoom.js/buggy/lib/OpenLayers/Control/PanZoom.js
OpenLayers.Event.observe(window, "DOMMouseScroll", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(window, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(document, "mousewheel", this.onWheelEvent.bindAsEventListener(this));
this.registerWheelEvents();
draw: function() { this.map.events.register( "click", this, this.defaultClick ); this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); this.map.events.register( "mouseout", this, this.defaultMouseOut ); //register mousewheel events specifically on the window and document OpenLayers.Event.observe(window, "DOMMouseScroll", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(window, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(document, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/4cac0a24ea34e62ec5a5e9f9a66c18996f457dc0/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
if (transparent) {
if (false) {
draw:function(transparent) { if (transparent) { this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null, this.position, this.size, this.url, "absolute"); } else { this.imgDiv = OpenLayers.Util.createImage(null, this.position, this.size, this.url, "absolute"); } this.layer.div.appendChild(this.imgDiv); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/Image.js/clean/lib/OpenLayers/Tile/Image.js
var sz = new OpenLayers.Size(18,18);
var sz = new OpenLayers.Size(28,28);
draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); this.buttons = new Object(); this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); this.map.events.register( "mouseout", this, this.defaultMouseOut ); var sz = new OpenLayers.Size(18,18); var centered = new OpenLayers.Pixel(100, 20); this._addButton("zoombox", "west-mini.png", "east-mini.png", centered, sz); return this.div; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/buggy/lib/OpenLayers/Control/MouseToolbar.js
this._addButton("zoombox", "west-mini.png", "east-mini.png", centered, sz);
this._addButton("zoombox", "drag-rectangle-off.png", "drag-rectangle-on.png", centered, sz); this._addButton("pan", "panning-hand-off.png", "panning-hand-on.png", new OpenLayers.Pixel(100,47), sz);
draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); this.buttons = new Object(); this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); this.map.events.register( "mousemove", this, this.defaultMouseMove ); this.map.events.register( "mouseout", this, this.defaultMouseOut ); var sz = new OpenLayers.Size(18,18); var centered = new OpenLayers.Pixel(100, 20); this._addButton("zoombox", "west-mini.png", "east-mini.png", centered, sz); return this.div; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/buggy/lib/OpenLayers/Control/MouseToolbar.js
if (this.drawn) { this.clear();
if (!OpenLayers.Tile.prototype.draw.apply(this, arguments)) { return false;
draw:function() { if (this.drawn) { this.clear(); } OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeaturesForRegion(this.requestSuccess); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/WFS.js/buggy/lib/OpenLayers/Tile/WFS.js
OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeaturesForRegion(this.requestSuccess); }
this.loadFeaturesForRegion(this.requestSuccess); this.drawn = true; return true;
draw:function() { if (this.drawn) { this.clear(); } OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeaturesForRegion(this.requestSuccess); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7e9eef8d075fa88068923404fa67c84bba79643e/WFS.js/buggy/lib/OpenLayers/Tile/WFS.js