rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
return -1;
return false;
function decode_base64( what ){ var base64_decodetable = new Array ( 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62, 255, 255, 255, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255, 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 255, 255, 255, 255, 255 ); var result = ""; var len = what.length; var x, y; var ptr = 0; while( !isNaN( x = what.charCodeAt( ptr++ ) ) ) { if( ( x > 127 ) || (( x = base64_decodetable[x] ) == 255) ) return -1; if( ( isNaN( y = what.charCodeAt( ptr++ ) ) ) || (( y = base64_decodetable[y] ) == 255) ) return -1; result += String.fromCharCode( (x << 2) | (y >> 4) ); if( (x = what.charCodeAt( ptr++ )) == 61 ) { if( (what.charCodeAt( ptr++ ) != 61) || (!isNaN(what.charCodeAt( ptr ) ) ) ) return -1; } else { if( ( x > 127 ) || (( x = base64_decodetable[x] ) == 255) ) return -1; result += String.fromCharCode( (y << 4) | (x >> 2) ); if( (y = what.charCodeAt( ptr++ )) == 61 ) { if( !isNaN(what.charCodeAt( ptr ) ) ) return -1; } else { if( (y > 127) || ((y = base64_decodetable[y]) == 255) ) return -1; result += String.fromCharCode( (x << 6) | y ); } } } return result;}
7371 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7371/a85d4102cd173c6e1d125f5ba34ee7bd4eab5dba/base64.js/buggy/caudium/trunk/server/unfinishedmodules/formauth-digest/base64.js
return -1;
return false;
function decode_base64( what ){ var base64_decodetable = new Array ( 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62, 255, 255, 255, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255, 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 255, 255, 255, 255, 255 ); var result = ""; var len = what.length; var x, y; var ptr = 0; while( !isNaN( x = what.charCodeAt( ptr++ ) ) ) { if( ( x > 127 ) || (( x = base64_decodetable[x] ) == 255) ) return -1; if( ( isNaN( y = what.charCodeAt( ptr++ ) ) ) || (( y = base64_decodetable[y] ) == 255) ) return -1; result += String.fromCharCode( (x << 2) | (y >> 4) ); if( (x = what.charCodeAt( ptr++ )) == 61 ) { if( (what.charCodeAt( ptr++ ) != 61) || (!isNaN(what.charCodeAt( ptr ) ) ) ) return -1; } else { if( ( x > 127 ) || (( x = base64_decodetable[x] ) == 255) ) return -1; result += String.fromCharCode( (y << 4) | (x >> 2) ); if( (y = what.charCodeAt( ptr++ )) == 61 ) { if( !isNaN(what.charCodeAt( ptr ) ) ) return -1; } else { if( (y > 127) || ((y = base64_decodetable[y]) == 255) ) return -1; result += String.fromCharCode( (x << 6) | y ); } } } return result;}
7371 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7371/a85d4102cd173c6e1d125f5ba34ee7bd4eab5dba/base64.js/buggy/caudium/trunk/server/unfinishedmodules/formauth-digest/base64.js
return -1;
return false;
function decode_base64( what ){ var base64_decodetable = new Array ( 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62, 255, 255, 255, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255, 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 255, 255, 255, 255, 255 ); var result = ""; var len = what.length; var x, y; var ptr = 0; while( !isNaN( x = what.charCodeAt( ptr++ ) ) ) { if( ( x > 127 ) || (( x = base64_decodetable[x] ) == 255) ) return -1; if( ( isNaN( y = what.charCodeAt( ptr++ ) ) ) || (( y = base64_decodetable[y] ) == 255) ) return -1; result += String.fromCharCode( (x << 2) | (y >> 4) ); if( (x = what.charCodeAt( ptr++ )) == 61 ) { if( (what.charCodeAt( ptr++ ) != 61) || (!isNaN(what.charCodeAt( ptr ) ) ) ) return -1; } else { if( ( x > 127 ) || (( x = base64_decodetable[x] ) == 255) ) return -1; result += String.fromCharCode( (y << 4) | (x >> 2) ); if( (y = what.charCodeAt( ptr++ )) == 61 ) { if( !isNaN(what.charCodeAt( ptr ) ) ) return -1; } else { if( (y > 127) || ((y = base64_decodetable[y]) == 255) ) return -1; result += String.fromCharCode( (x << 6) | y ); } } } return result;}
7371 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7371/a85d4102cd173c6e1d125f5ba34ee7bd4eab5dba/base64.js/buggy/caudium/trunk/server/unfinishedmodules/formauth-digest/base64.js
return -1;
return false;
function decode_base64( what ){ var base64_decodetable = new Array ( 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 62, 255, 255, 255, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 255, 255, 255, 255, 255, 255, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 255, 255, 255, 255, 255 ); var result = ""; var len = what.length; var x, y; var ptr = 0; while( !isNaN( x = what.charCodeAt( ptr++ ) ) ) { if( ( x > 127 ) || (( x = base64_decodetable[x] ) == 255) ) return -1; if( ( isNaN( y = what.charCodeAt( ptr++ ) ) ) || (( y = base64_decodetable[y] ) == 255) ) return -1; result += String.fromCharCode( (x << 2) | (y >> 4) ); if( (x = what.charCodeAt( ptr++ )) == 61 ) { if( (what.charCodeAt( ptr++ ) != 61) || (!isNaN(what.charCodeAt( ptr ) ) ) ) return -1; } else { if( ( x > 127 ) || (( x = base64_decodetable[x] ) == 255) ) return -1; result += String.fromCharCode( (y << 4) | (x >> 2) ); if( (y = what.charCodeAt( ptr++ )) == 61 ) { if( !isNaN(what.charCodeAt( ptr ) ) ) return -1; } else { if( (y > 127) || ((y = base64_decodetable[y]) == 255) ) return -1; result += String.fromCharCode( (x << 6) | y ); } } } return result;}
7371 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7371/a85d4102cd173c6e1d125f5ba34ee7bd4eab5dba/base64.js/buggy/caudium/trunk/server/unfinishedmodules/formauth-digest/base64.js
idx++; var type=s.charAt(idx++);
idx++; var type=s.charAt(idx++);
DecodeObject: function(string, emptyReturnsNull, sep) { var obj=new Object; if (!string) { if (emptyReturnsNull) { return null; } return obj; } if (!sep) { sep="&"; } var ss=string.split(sep); for(var i=0;i<ss.length;i++) { var s=ss[i]; var idx=s.indexOf('='); f_core.Assert(idx>0, "Bad format ! '"+s+"'."); var name=s.substring(0, idx); name=name.replace(/\+/g, ' '); name=decodeURIComponent(name); idx++; var type=s.charAt(idx++); var data=s.substring(idx); if (data.length>0) { switch(type) { case 'S': data=data.replace(/\+/g, ' '); data=decodeURIComponent(data); break; case 'L': data=null; break; case 'T': data=true; break; case 'F': data=false; break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (!data) { data=parseFloat(type); break; } case '-': data=parseFloat(type+data); break; default: f_core.Error(f_core, "Unknown type '"+type+"' !"); data=undefined; } } obj[name]=data; } return obj; },
4326 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_core.js/clean/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_core.js
if (data.length>0) { switch(type) { case 'S':
switch(type) { case 'S': if (data) {
DecodeObject: function(string, emptyReturnsNull, sep) { var obj=new Object; if (!string) { if (emptyReturnsNull) { return null; } return obj; } if (!sep) { sep="&"; } var ss=string.split(sep); for(var i=0;i<ss.length;i++) { var s=ss[i]; var idx=s.indexOf('='); f_core.Assert(idx>0, "Bad format ! '"+s+"'."); var name=s.substring(0, idx); name=name.replace(/\+/g, ' '); name=decodeURIComponent(name); idx++; var type=s.charAt(idx++); var data=s.substring(idx); if (data.length>0) { switch(type) { case 'S': data=data.replace(/\+/g, ' '); data=decodeURIComponent(data); break; case 'L': data=null; break; case 'T': data=true; break; case 'F': data=false; break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (!data) { data=parseFloat(type); break; } case '-': data=parseFloat(type+data); break; default: f_core.Error(f_core, "Unknown type '"+type+"' !"); data=undefined; } } obj[name]=data; } return obj; },
4326 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_core.js/clean/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_core.js
case 'L': data=null; break; case 'T': data=true; break; case 'F': data=false; break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (!data) { data=parseFloat(type); break; }
} case '-': data=-parseFloat(data); break;
DecodeObject: function(string, emptyReturnsNull, sep) { var obj=new Object; if (!string) { if (emptyReturnsNull) { return null; } return obj; } if (!sep) { sep="&"; } var ss=string.split(sep); for(var i=0;i<ss.length;i++) { var s=ss[i]; var idx=s.indexOf('='); f_core.Assert(idx>0, "Bad format ! '"+s+"'."); var name=s.substring(0, idx); name=name.replace(/\+/g, ' '); name=decodeURIComponent(name); idx++; var type=s.charAt(idx++); var data=s.substring(idx); if (data.length>0) { switch(type) { case 'S': data=data.replace(/\+/g, ' '); data=decodeURIComponent(data); break; case 'L': data=null; break; case 'T': data=true; break; case 'F': data=false; break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (!data) { data=parseFloat(type); break; } case '-': data=parseFloat(type+data); break; default: f_core.Error(f_core, "Unknown type '"+type+"' !"); data=undefined; } } obj[name]=data; } return obj; },
4326 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_core.js/clean/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_core.js
case '-': data=parseFloat(type+data); break; default: f_core.Error(f_core, "Unknown type '"+type+"' !"); data=undefined; }
default: f_core.Error(f_core, "Unknown type '"+type+"' !"); data=undefined;
DecodeObject: function(string, emptyReturnsNull, sep) { var obj=new Object; if (!string) { if (emptyReturnsNull) { return null; } return obj; } if (!sep) { sep="&"; } var ss=string.split(sep); for(var i=0;i<ss.length;i++) { var s=ss[i]; var idx=s.indexOf('='); f_core.Assert(idx>0, "Bad format ! '"+s+"'."); var name=s.substring(0, idx); name=name.replace(/\+/g, ' '); name=decodeURIComponent(name); idx++; var type=s.charAt(idx++); var data=s.substring(idx); if (data.length>0) { switch(type) { case 'S': data=data.replace(/\+/g, ' '); data=decodeURIComponent(data); break; case 'L': data=null; break; case 'T': data=true; break; case 'F': data=false; break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (!data) { data=parseFloat(type); break; } case '-': data=parseFloat(type+data); break; default: f_core.Error(f_core, "Unknown type '"+type+"' !"); data=undefined; } } obj[name]=data; } return obj; },
4326 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_core.js/clean/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_core.js
f_core.Debug(f_core, "Deserialize attribute '"+name+"' = '"+data+"'");
DecodeObject: function(string, emptyReturnsNull, sep) { var obj=new Object; if (!string) { if (emptyReturnsNull) { return null; } return obj; } if (!sep) { sep="&"; } var ss=string.split(sep); for(var i=0;i<ss.length;i++) { var s=ss[i]; var idx=s.indexOf('='); f_core.Assert(idx>0, "Bad format ! '"+s+"'."); var name=s.substring(0, idx); name=name.replace(/\+/g, ' '); name=decodeURIComponent(name); idx++; var type=s.charAt(idx++); var data=s.substring(idx); if (data.length>0) { switch(type) { case 'S': data=data.replace(/\+/g, ' '); data=decodeURIComponent(data); break; case 'L': data=null; break; case 'T': data=true; break; case 'F': data=false; break; case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': if (!data) { data=parseFloat(type); break; } case '-': data=parseFloat(type+data); break; default: f_core.Error(f_core, "Unknown type '"+type+"' !"); data=undefined; } } obj[name]=data; } return obj; },
4326 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_core.js/clean/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_core.js
text = text.replace(/<br\s*\\?>/i, "\n");
text = text.replace(/<br\s*\/?>/gi, "\n");
function decodeText(text) { var escapeXml = options.escapeXmlEntities; var r; text = text.replace(/<br\s*\\?>/i, "\n"); if (escapeXml == 'always' || escapeXml == 'partial' || escapeXml == 'html') { text = text.replace(/&lt;/g, '<'); text = text.replace(/&gt;/g, '>'); } if (escapeXml == 'html') { text = text.replace(/&nbsp;/g, "\xA0"); text = text.replace(/&#(\d+);/g, function(str, p1) { return String.fromCharCode(parseInt(p1)); }); text = text.replace(/&#x([0-9a-f]+);/gi, function(str, p1) { return String.fromCharCode(parseInt(p1, 16)); }); text = text.replace(/ +/g, " "); // truncate multiple spaces to single space text = text.replace(/\xA0/g, " "); } if (escapeXml == 'always' || escapeXml == 'html') { text = text.replace(/&apos;/g, "'"); text = text.replace(/&quot;/g, '"'); text = text.replace(/&amp;/g, '&'); } if ('true' == options.escapeDollar) { text = text.replace(/([^\\])\$\{/g, '$1$$$${'); // replace ${...} to $${...} text = text.replace(/^\$\{/g, '$$$${'); // replace ${...} to $${...} text = text.replace(/\\\$\{/g, '$${'); // replace \${...} to ${...} } text = text.replace(/^\s+/, ""); text = text.replace(/\s+$/, ""); return text;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/f9e10fae39b92cc24106a3c51c969e4984378223/html.js/clean/src/content/formats/html.js
text = text.replace(/\xA0/g, " ");
function decodeText(text) { var escapeXml = options.escapeXmlEntities; var r; text = text.replace(/<br\s*\\?>/i, "\n"); if (escapeXml == 'always' || escapeXml == 'partial' || escapeXml == 'html') { text = text.replace(/&lt;/g, '<'); text = text.replace(/&gt;/g, '>'); } if (escapeXml == 'html') { text = text.replace(/&nbsp;/g, "\xA0"); text = text.replace(/&#(\d+);/g, function(str, p1) { return String.fromCharCode(parseInt(p1)); }); text = text.replace(/&#x([0-9a-f]+);/gi, function(str, p1) { return String.fromCharCode(parseInt(p1, 16)); }); text = text.replace(/ +/g, " "); // truncate multiple spaces to single space } if (escapeXml == 'always' || escapeXml == 'html') { text = text.replace(/&apos;/g, "'"); text = text.replace(/&quot;/g, '"'); text = text.replace(/&amp;/g, '&'); } if ('true' == options.escapeDollar) { text = text.replace(/([^\\])\$\{/g, '$1$$$${'); // replace ${...} to $${...} text = text.replace(/^\$\{/g, '$$$${'); // replace ${...} to $${...} text = text.replace(/\\\$\{/g, '$${'); // replace \${...} to ${...} } text = text.replace(/^\s+/, ""); text = text.replace(/\s+$/, ""); return text;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/9c787c7e6c12c5505c234cea90865fbee0d58139/html.js/clean/src/content/formats/html.js
text = text.replace(/ +/g, " ");
function decodeText(text) { var escapeXml = options.escapeXmlEntities; var r; text = text.replace(/<br\s*\\?>/i, "\n"); if (escapeXml == 'always' || escapeXml == 'partial' || escapeXml == 'html') { text = text.replace(/&lt;/g, '<'); text = text.replace(/&gt;/g, '>'); } if (escapeXml == 'html') { text = text.replace(/&nbsp;/g, "\xA0"); text = text.replace(/&#(\d+);/g, function(str, p1) { return String.fromCharCode(parseInt(p1)); }); text = text.replace(/&#x([0-9a-f]+);/gi, function(str, p1) { return String.fromCharCode(parseInt(p1, 16)); }); } if (escapeXml == 'always' || escapeXml == 'html') { text = text.replace(/&apos;/g, "'"); text = text.replace(/&quot;/g, '"'); text = text.replace(/&amp;/g, '&'); } if ('true' == options.escapeDollar) { text = text.replace(/([^\\])\$\{/g, '$1$$$${'); // replace ${...} to $${...} text = text.replace(/^\$\{/g, '$$$${'); // replace ${...} to $${...} text = text.replace(/\\\$\{/g, '$${'); // replace \${...} to ${...} } text = text.replace(/^\s+/, ""); text = text.replace(/\s+$/, ""); return text;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4bfa7692cc2103f89695fba65b7284a7b4aeb230/html.js/clean/src/content/formats/html.js
if (!Event.isLeftClick(evt)) return;
defaultClick: function (evt) { var notAfterDrag = !this.performedDrag; this.performedDrag = false; return notAfterDrag; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
if (!Event.isLeftClick(evt)) return;
defaultClick: function (evt) { var notAfterDrag = !this.performedDrag; this.performedDrag = false; return notAfterDrag; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
this.performedDrag = false;
defaultDblClick: function (evt) { this.switchModeTo("pan"); var newCenter = this.map.getLonLatFromViewPortPx( evt.xy ); this.map.setCenter(newCenter, this.map.zoom + 2); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
this.zoomIn(); this.setCenter(newCenter);
this.setCenter(newCenter, this.zoom + 1);
defaultDblClick: function (evt) { var newCenter = this.getLatLonFromPixel( evt.xy ); this.zoomIn(); this.setCenter(newCenter); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/ed9b57b6df737ed58b33843285251114e8507962/Map.js/buggy/lib/OpenLayers/Map.js
this.zoomIn(); this.setCenter(newCenter);
this.setCenter(newCenter, this.zoom + 1);
defaultDblClick: function (evt) { var newCenter = this.getLatLonFromPixel( evt.xy ); this.zoomIn(); this.setCenter(newCenter); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/ed9b57b6df737ed58b33843285251114e8507962/Map.js/buggy/lib/OpenLayers/Map.js
this.performedDrag = false;
defaultDblClick: function (evt) { this.switchModeTo("pan"); var newCenter = this.map.getLonLatFromViewPortPx( evt.xy ); this.map.setCenter(newCenter, this.map.zoom + 2); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);
var offset = function(size) { return OpenLayers.Pixel(-(size.w/2), -size.h); };
OpenLayers.Marker.defaultIcon = function() { var url = OpenLayers.Util.getImagesLocation() + "marker.png"; var size = new OpenLayers.Size(21, 25); var offset = new OpenLayers.Pixel(-(size.w/2), -size.h); return new OpenLayers.Icon(url, size, offset); };
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/51aaf18b5964acdfc0c35f2078c52aff5101e0f5/Marker.js/buggy/lib/OpenLayers/Marker.js
var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);
var offset = function(size) { return OpenLayers.Pixel(-(size.w/2), -size.h); };
OpenLayers.Marker.defaultIcon = function() { var url = OpenLayers.Util.getImagesLocation() + "marker.png"; var size = new OpenLayers.Size(21, 25); var offset = new OpenLayers.Pixel(-(size.w/2), -size.h); return new OpenLayers.Icon(url, size, offset); };
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/51aaf18b5964acdfc0c35f2078c52aff5101e0f5/Marker.js/clean/lib/OpenLayers/Marker.js
var resolution = this.getResolution();
var slide = this.getResolution() * 50;
defaultKeyDown: function (evt) { var resolution = this.getResolution(); var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -(resolution * 50), 0); break; case Event.KEY_RIGHT: newCenter.add( (resolution * 50), 0); break; case Event.KEY_UP: newCenter.add( 0, (resolution * 50)); break; case Event.KEY_DOWN: newCenter.add( 0, -(resolution * 50)); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/1cca9fcde73919ed0a828a6864b1774550e5b4d5/KeyboardDefaults.js/clean/lib/OpenLayers/Control/KeyboardDefaults.js
newCenter.add( -(resolution * 50), 0);
newCenter.add( -slide, 0);
defaultKeyDown: function (evt) { var resolution = this.getResolution(); var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -(resolution * 50), 0); break; case Event.KEY_RIGHT: newCenter.add( (resolution * 50), 0); break; case Event.KEY_UP: newCenter.add( 0, (resolution * 50)); break; case Event.KEY_DOWN: newCenter.add( 0, -(resolution * 50)); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/1cca9fcde73919ed0a828a6864b1774550e5b4d5/KeyboardDefaults.js/clean/lib/OpenLayers/Control/KeyboardDefaults.js
newCenter.add( (resolution * 50), 0);
newCenter.add( slide, 0);
defaultKeyDown: function (evt) { var resolution = this.getResolution(); var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -(resolution * 50), 0); break; case Event.KEY_RIGHT: newCenter.add( (resolution * 50), 0); break; case Event.KEY_UP: newCenter.add( 0, (resolution * 50)); break; case Event.KEY_DOWN: newCenter.add( 0, -(resolution * 50)); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/1cca9fcde73919ed0a828a6864b1774550e5b4d5/KeyboardDefaults.js/clean/lib/OpenLayers/Control/KeyboardDefaults.js
newCenter.add( 0, (resolution * 50));
newCenter.add( 0, slide);
defaultKeyDown: function (evt) { var resolution = this.getResolution(); var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -(resolution * 50), 0); break; case Event.KEY_RIGHT: newCenter.add( (resolution * 50), 0); break; case Event.KEY_UP: newCenter.add( 0, (resolution * 50)); break; case Event.KEY_DOWN: newCenter.add( 0, -(resolution * 50)); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/1cca9fcde73919ed0a828a6864b1774550e5b4d5/KeyboardDefaults.js/clean/lib/OpenLayers/Control/KeyboardDefaults.js
newCenter.add( 0, -(resolution * 50));
newCenter.add( 0, -slide);
defaultKeyDown: function (evt) { var resolution = this.getResolution(); var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -(resolution * 50), 0); break; case Event.KEY_RIGHT: newCenter.add( (resolution * 50), 0); break; case Event.KEY_UP: newCenter.add( 0, (resolution * 50)); break; case Event.KEY_DOWN: newCenter.add( 0, -(resolution * 50)); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/1cca9fcde73919ed0a828a6864b1774550e5b4d5/KeyboardDefaults.js/clean/lib/OpenLayers/Control/KeyboardDefaults.js
var resolution = this.getResolution();
var slide = this.getResolution() * 50;
defaultKeyDown: function (evt) { var resolution = this.getResolution(); var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -(resolution * 50), 0); break; case Event.KEY_RIGHT: newCenter.add( (resolution * 50), 0); break; case Event.KEY_UP: newCenter.add( 0, (resolution * 50)); break; case Event.KEY_DOWN: newCenter.add( 0, -(resolution * 50)); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/1cca9fcde73919ed0a828a6864b1774550e5b4d5/KeyboardDefaults.js/buggy/lib/OpenLayers/Control/KeyboardDefaults.js
newCenter.add( -(resolution * 50), 0);
newCenter.add( -slide, 0);
defaultKeyDown: function (evt) { var resolution = this.getResolution(); var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -(resolution * 50), 0); break; case Event.KEY_RIGHT: newCenter.add( (resolution * 50), 0); break; case Event.KEY_UP: newCenter.add( 0, (resolution * 50)); break; case Event.KEY_DOWN: newCenter.add( 0, -(resolution * 50)); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/1cca9fcde73919ed0a828a6864b1774550e5b4d5/KeyboardDefaults.js/buggy/lib/OpenLayers/Control/KeyboardDefaults.js
newCenter.add( (resolution * 50), 0);
newCenter.add( slide, 0);
defaultKeyDown: function (evt) { var resolution = this.getResolution(); var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -(resolution * 50), 0); break; case Event.KEY_RIGHT: newCenter.add( (resolution * 50), 0); break; case Event.KEY_UP: newCenter.add( 0, (resolution * 50)); break; case Event.KEY_DOWN: newCenter.add( 0, -(resolution * 50)); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/1cca9fcde73919ed0a828a6864b1774550e5b4d5/KeyboardDefaults.js/buggy/lib/OpenLayers/Control/KeyboardDefaults.js
newCenter.add( 0, (resolution * 50));
newCenter.add( 0, slide);
defaultKeyDown: function (evt) { var resolution = this.getResolution(); var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -(resolution * 50), 0); break; case Event.KEY_RIGHT: newCenter.add( (resolution * 50), 0); break; case Event.KEY_UP: newCenter.add( 0, (resolution * 50)); break; case Event.KEY_DOWN: newCenter.add( 0, -(resolution * 50)); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/1cca9fcde73919ed0a828a6864b1774550e5b4d5/KeyboardDefaults.js/buggy/lib/OpenLayers/Control/KeyboardDefaults.js
newCenter.add( 0, -(resolution * 50));
newCenter.add( 0, -slide);
defaultKeyDown: function (evt) { var resolution = this.getResolution(); var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -(resolution * 50), 0); break; case Event.KEY_RIGHT: newCenter.add( (resolution * 50), 0); break; case Event.KEY_UP: newCenter.add( 0, (resolution * 50)); break; case Event.KEY_DOWN: newCenter.add( 0, -(resolution * 50)); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/1cca9fcde73919ed0a828a6864b1774550e5b4d5/KeyboardDefaults.js/buggy/lib/OpenLayers/Control/KeyboardDefaults.js
var slide = this.getResolution() * this.slideFactor; var center = this.getCenter();
var slide = this.map.getResolution() * this.slideFactor; var center = this.map.getCenter();
defaultKeyDown: function (evt) { var slide = this.getResolution() * this.slideFactor; var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -slide, 0); break; case Event.KEY_RIGHT: newCenter.add( slide, 0); break; case Event.KEY_UP: newCenter.add( 0, slide); break; case Event.KEY_DOWN: newCenter.add( 0, -slide); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/91e9c17c986e2c21b69e51218fa1604e1530a926/KeyboardDefaults.js/buggy/lib/OpenLayers/Control/KeyboardDefaults.js
this.setCenter(newCenter);
this.map.setCenter(newCenter);
defaultKeyDown: function (evt) { var slide = this.getResolution() * this.slideFactor; var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -slide, 0); break; case Event.KEY_RIGHT: newCenter.add( slide, 0); break; case Event.KEY_UP: newCenter.add( 0, slide); break; case Event.KEY_DOWN: newCenter.add( 0, -slide); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/91e9c17c986e2c21b69e51218fa1604e1530a926/KeyboardDefaults.js/buggy/lib/OpenLayers/Control/KeyboardDefaults.js
var slide = this.getResolution() * this.slideFactor; var center = this.getCenter();
var slide = this.map.getResolution() * this.slideFactor; var center = this.map.getCenter();
defaultKeyDown: function (evt) { var slide = this.getResolution() * this.slideFactor; var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -slide, 0); break; case Event.KEY_RIGHT: newCenter.add( slide, 0); break; case Event.KEY_UP: newCenter.add( 0, slide); break; case Event.KEY_DOWN: newCenter.add( 0, -slide); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/91e9c17c986e2c21b69e51218fa1604e1530a926/KeyboardDefaults.js/clean/lib/OpenLayers/Control/KeyboardDefaults.js
this.setCenter(newCenter);
this.map.setCenter(newCenter);
defaultKeyDown: function (evt) { var slide = this.getResolution() * this.slideFactor; var center = this.getCenter(); var newCenter = center.copyOf(); switch(evt.keyCode) { case Event.KEY_LEFT: newCenter.add( -slide, 0); break; case Event.KEY_RIGHT: newCenter.add( slide, 0); break; case Event.KEY_UP: newCenter.add( 0, slide); break; case Event.KEY_DOWN: newCenter.add( 0, -slide); break; } if (!newCenter.equals(center)) { this.setCenter(newCenter); Event.stop(evt); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/91e9c17c986e2c21b69e51218fa1604e1530a926/KeyboardDefaults.js/clean/lib/OpenLayers/Control/KeyboardDefaults.js
} else { this.map.div.style.cursor = "move";
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox', this.mouseDragStart, null, null, "absolute", "2px solid red"); this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); } else { this.map.div.style.cursor = "move"; } Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/2f9c7dfbd35e927583a66644a059ccb84b7338bf/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
this.zoomBox.style.filter = "alpha(opacity=35)"; this.zoomBox.style.opacity = "0.35";
this.zoomBox.style.filter = "alpha(opacity=50)"; this.zoomBox.style.opacity = "0.50";
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox'); this.zoomBox.style.border = '2px solid red'; this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=35)"; // IE this.zoomBox.style.opacity = "0.35"; this.zoomBox.style.position="absolute"; this.zoomBox.style.zIndex=1000; this.zoomBox.style.top=this.mouseDragStart.y; this.zoomBox.style.left=this.mouseDragStart.x; this.map.viewPortDiv.appendChild(this.zoomBox); } else { this.map.div.style.cursor = "move"; } Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7683e0853a92900836d3fc75169ddf6d5bf0b478/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
this.zoomBox.style.zIndex=1000;
this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1;
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox'); this.zoomBox.style.border = '2px solid red'; this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=35)"; // IE this.zoomBox.style.opacity = "0.35"; this.zoomBox.style.position="absolute"; this.zoomBox.style.zIndex=1000; this.zoomBox.style.top=this.mouseDragStart.y; this.zoomBox.style.left=this.mouseDragStart.x; this.map.viewPortDiv.appendChild(this.zoomBox); } else { this.map.div.style.cursor = "move"; } Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7683e0853a92900836d3fc75169ddf6d5bf0b478/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
if (!Event.isLeftClick(evt)) return;
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); this.performedDrag = false; if (evt.shiftKey) { this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox', this.mouseDragStart, null, null, "absolute", "2px solid red"); this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); } document.onselectstart=function() { return false; } Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
if (evt.shiftKey) {
if (evt.shiftKey && this.mode !="zoombox") {
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.switchModeTo("zoombox"); } else if (evt.altKey) { this.switchModeTo("measure"); } switch (this.mode) { case "zoombox": this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox', this.mouseDragStart, null, null, "absolute", "2px solid red"); this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); break; case "measure": break; default: this.map.div.style.cursor = "move"; break; } Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
} else if (evt.altKey) {
} else if (evt.altKey && this.mode !="measure") {
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.switchModeTo("zoombox"); } else if (evt.altKey) { this.switchModeTo("measure"); } switch (this.mode) { case "zoombox": this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox', this.mouseDragStart, null, null, "absolute", "2px solid red"); this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); break; case "measure": break; default: this.map.div.style.cursor = "move"; break; } Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.switchModeTo("zoombox"); } else if (evt.altKey) { this.switchModeTo("measure"); } switch (this.mode) { case "zoombox": this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox', this.mouseDragStart, null, null, "absolute", "2px solid red"); this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); break; case "measure": break; default: this.map.div.style.cursor = "move"; break; } Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
if (evt.shiftKey) {
if (evt.shiftKey && this.mode !="zoombox") {
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.switchModeTo("zoombox"); } else if (evt.altKey) { this.switchModeTo("measure"); } switch (this.mode) { case "zoombox": this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox', this.mouseDragStart, null, null, "absolute", "2px solid red"); this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); break; case "measure": break; default: this.map.div.style.cursor = "move"; break; } Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/buggy/lib/OpenLayers/Control/MouseToolbar.js
} else if (evt.altKey) {
} else if (evt.altKey && this.mode !="measure") {
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.switchModeTo("zoombox"); } else if (evt.altKey) { this.switchModeTo("measure"); } switch (this.mode) { case "zoombox": this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox', this.mouseDragStart, null, null, "absolute", "2px solid red"); this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); break; case "measure": break; default: this.map.div.style.cursor = "move"; break; } Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/buggy/lib/OpenLayers/Control/MouseToolbar.js
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.switchModeTo("zoombox"); } else if (evt.altKey) { this.switchModeTo("measure"); } switch (this.mode) { case "zoombox": this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox', this.mouseDragStart, null, null, "absolute", "2px solid red"); this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); break; case "measure": break; default: this.map.div.style.cursor = "move"; break; } Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/5b8c48d8ede9910b42f905788f6974877e0ac77a/MouseToolbar.js/buggy/lib/OpenLayers/Control/MouseToolbar.js
} else { this.map.div.style.cursor = "move";
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox', this.mouseDragStart, null, null, "absolute", "2px solid red"); this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); } else { this.map.div.style.cursor = "move"; } Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/2f9c7dfbd35e927583a66644a059ccb84b7338bf/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=35)"; this.zoomBox.style.opacity = "0.35";
this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=35)"; this.zoomBox.style.opacity = "0.35";
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox'); this.zoomBox.style.border = '2px solid red'; this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=35)"; // IE this.zoomBox.style.opacity = "0.35"; this.zoomBox.style.position="absolute"; this.zoomBox.style.zIndex=1000; this.zoomBox.style.top=this.mouseDragStart.y; this.zoomBox.style.left=this.mouseDragStart.x; this.map.viewPortDiv.appendChild(this.zoomBox); } else { this.map.div.style.cursor = "move"; } Event.stop(evt); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f5b1cc270cd2b207a595c89498395bf2ed1d5108/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
this.zoomBox.style.filter = "alpha(opacity=35)"; this.zoomBox.style.opacity = "0.35";
this.zoomBox.style.filter = "alpha(opacity=50)"; this.zoomBox.style.opacity = "0.50";
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox'); this.zoomBox.style.border = '2px solid red'; this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=35)"; // IE this.zoomBox.style.opacity = "0.35"; this.zoomBox.style.position="absolute"; this.zoomBox.style.zIndex=1000; this.zoomBox.style.top=this.mouseDragStart.y; this.zoomBox.style.left=this.mouseDragStart.x; this.map.viewPortDiv.appendChild(this.zoomBox); } else { this.map.div.style.cursor = "move"; } Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7683e0853a92900836d3fc75169ddf6d5bf0b478/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
this.zoomBox.style.zIndex=1000;
this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1;
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox'); this.zoomBox.style.border = '2px solid red'; this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=35)"; // IE this.zoomBox.style.opacity = "0.35"; this.zoomBox.style.position="absolute"; this.zoomBox.style.zIndex=1000; this.zoomBox.style.top=this.mouseDragStart.y; this.zoomBox.style.left=this.mouseDragStart.x; this.map.viewPortDiv.appendChild(this.zoomBox); } else { this.map.div.style.cursor = "move"; } Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7683e0853a92900836d3fc75169ddf6d5bf0b478/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=35)"; this.zoomBox.style.opacity = "0.35";
this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=35)"; this.zoomBox.style.opacity = "0.35";
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); if (evt.shiftKey) { this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox'); this.zoomBox.style.border = '2px solid red'; this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=35)"; // IE this.zoomBox.style.opacity = "0.35"; this.zoomBox.style.position="absolute"; this.zoomBox.style.zIndex=1000; this.zoomBox.style.top=this.mouseDragStart.y; this.zoomBox.style.left=this.mouseDragStart.x; this.map.viewPortDiv.appendChild(this.zoomBox); } else { this.map.div.style.cursor = "move"; } Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f5b1cc270cd2b207a595c89498395bf2ed1d5108/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
if (!Event.isLeftClick(evt)) return;
defaultMouseDown: function (evt) { this.mouseDragStart = evt.xy.copyOf(); this.performedDrag = false; if (evt.shiftKey) { this.map.div.style.cursor = "crosshair"; this.zoomBox = OpenLayers.Util.createDiv('zoomBox', this.mouseDragStart, null, null, "absolute", "2px solid red"); this.zoomBox.style.backgroundColor = "white"; this.zoomBox.style.filter = "alpha(opacity=50)"; // IE this.zoomBox.style.opacity = "0.50"; this.zoomBox.style.zIndex = this.map.Z_INDEX_BASE["Popup"] - 1; this.map.viewPortDiv.appendChild(this.zoomBox); } document.onselectstart=function() { return false; } Event.stop(evt); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
this.performedDrag = true;
defaultMouseMove: function (evt) { if (this.mouseDragStart != null) { if (this.zoomBox) { var deltaX = Math.abs(this.mouseDragStart.x - evt.xy.x); var deltaY = Math.abs(this.mouseDragStart.y - evt.xy.y); this.zoomBox.style.width = deltaX+"px"; this.zoomBox.style.height = deltaY+"px"; if (evt.xy.x < this.mouseDragStart.x) { this.zoomBox.style.left = evt.xy.x+"px"; } if (evt.xy.y < this.mouseDragStart.y) { this.zoomBox.style.top = evt.xy.y+"px"; } } else { var deltaX = this.mouseDragStart.x - evt.xy.x; var deltaY = this.mouseDragStart.y - evt.xy.y; var size = this.map.getSize(); var newXY = new OpenLayers.Pixel(size.w / 2 + deltaX, size.h / 2 + deltaY); var newCenter = this.map.getLonLatFromScreenPx( newXY ); this.map.setCenter(newCenter, null, true); this.mouseDragStart = evt.xy.copyOf(); } } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/2f9c7dfbd35e927583a66644a059ccb84b7338bf/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
this.performedDrag = true;
defaultMouseMove: function (evt) { if (this.mouseDragStart != null) { switch (this.mode) { case "zoombox": var deltaX = Math.abs(this.mouseDragStart.x - evt.xy.x); var deltaY = Math.abs(this.mouseDragStart.y - evt.xy.y); this.zoomBox.style.width = deltaX+"px"; this.zoomBox.style.height = deltaY+"px"; if (evt.xy.x < this.mouseDragStart.x) { this.zoomBox.style.left = evt.xy.x+"px"; } if (evt.xy.y < this.mouseDragStart.y) { this.zoomBox.style.top = evt.xy.y+"px"; } break; default: var deltaX = this.mouseDragStart.x - evt.xy.x; var deltaY = this.mouseDragStart.y - evt.xy.y; var size = this.map.getSize(); var newXY = new OpenLayers.Pixel(size.w / 2 + deltaX, size.h / 2 + deltaY); var newCenter = this.map.getLonLatFromViewPortPx( newXY ); this.map.setCenter(newCenter, null, true); this.mouseDragStart = evt.xy.clone(); } } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
this.mousePosition = evt.xy.clone();
defaultMouseMove: function (evt) { if (this.mouseDragStart != null) { if (this.zoomBox) { var deltaX = Math.abs(this.mouseDragStart.x - evt.xy.x); var deltaY = Math.abs(this.mouseDragStart.y - evt.xy.y); this.zoomBox.style.width = Math.max(1, deltaX) + "px"; this.zoomBox.style.height = Math.max(1, deltaY) + "px"; if (evt.xy.x < this.mouseDragStart.x) { this.zoomBox.style.left = evt.xy.x+"px"; } if (evt.xy.y < this.mouseDragStart.y) { this.zoomBox.style.top = evt.xy.y+"px"; } } else { var deltaX = this.mouseDragStart.x - evt.xy.x; var deltaY = this.mouseDragStart.y - evt.xy.y; var size = this.map.getSize(); var newXY = new OpenLayers.Pixel(size.w / 2 + deltaX, size.h / 2 + deltaY); var newCenter = this.map.getLonLatFromViewPortPx( newXY ); this.map.setCenter(newCenter, null, true); this.mouseDragStart = evt.xy.clone(); this.map.div.style.cursor = "move"; } this.performedDrag = true; } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/15c2ab578fabf2c24ed636bbb490243d82a68076/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
this.performedDrag = true;
defaultMouseMove: function (evt) { if (this.mouseDragStart != null) { if (this.zoomBox) { var deltaX = Math.abs(this.mouseDragStart.x - evt.xy.x); var deltaY = Math.abs(this.mouseDragStart.y - evt.xy.y); this.zoomBox.style.width = deltaX+"px"; this.zoomBox.style.height = deltaY+"px"; if (evt.xy.x < this.mouseDragStart.x) { this.zoomBox.style.left = evt.xy.x+"px"; } if (evt.xy.y < this.mouseDragStart.y) { this.zoomBox.style.top = evt.xy.y+"px"; } } else { var deltaX = this.mouseDragStart.x - evt.xy.x; var deltaY = this.mouseDragStart.y - evt.xy.y; var size = this.map.getSize(); var newXY = new OpenLayers.Pixel(size.w / 2 + deltaX, size.h / 2 + deltaY); var newCenter = this.map.getLonLatFromScreenPx( newXY ); this.map.setCenter(newCenter, null, true); this.mouseDragStart = evt.xy.copyOf(); } } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/2f9c7dfbd35e927583a66644a059ccb84b7338bf/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
this.performedDrag = true;
defaultMouseMove: function (evt) { if (this.mouseDragStart != null) { switch (this.mode) { case "zoombox": var deltaX = Math.abs(this.mouseDragStart.x - evt.xy.x); var deltaY = Math.abs(this.mouseDragStart.y - evt.xy.y); this.zoomBox.style.width = deltaX+"px"; this.zoomBox.style.height = deltaY+"px"; if (evt.xy.x < this.mouseDragStart.x) { this.zoomBox.style.left = evt.xy.x+"px"; } if (evt.xy.y < this.mouseDragStart.y) { this.zoomBox.style.top = evt.xy.y+"px"; } break; default: var deltaX = this.mouseDragStart.x - evt.xy.x; var deltaY = this.mouseDragStart.y - evt.xy.y; var size = this.map.getSize(); var newXY = new OpenLayers.Pixel(size.w / 2 + deltaX, size.h / 2 + deltaY); var newCenter = this.map.getLonLatFromViewPortPx( newXY ); this.map.setCenter(newCenter, null, true); this.mouseDragStart = evt.xy.clone(); } } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
this.mousePosition = evt.xy.clone();
defaultMouseMove: function (evt) { if (this.mouseDragStart != null) { if (this.zoomBox) { var deltaX = Math.abs(this.mouseDragStart.x - evt.xy.x); var deltaY = Math.abs(this.mouseDragStart.y - evt.xy.y); this.zoomBox.style.width = Math.max(1, deltaX) + "px"; this.zoomBox.style.height = Math.max(1, deltaY) + "px"; if (evt.xy.x < this.mouseDragStart.x) { this.zoomBox.style.left = evt.xy.x+"px"; } if (evt.xy.y < this.mouseDragStart.y) { this.zoomBox.style.top = evt.xy.y+"px"; } } else { var deltaX = this.mouseDragStart.x - evt.xy.x; var deltaY = this.mouseDragStart.y - evt.xy.y; var size = this.map.getSize(); var newXY = new OpenLayers.Pixel(size.w / 2 + deltaX, size.h / 2 + deltaY); var newCenter = this.map.getLonLatFromViewPortPx( newXY ); this.map.setCenter(newCenter, null, true); this.mouseDragStart = evt.xy.clone(); this.map.div.style.cursor = "move"; } this.performedDrag = true; } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/15c2ab578fabf2c24ed636bbb490243d82a68076/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
this.defaultMouseUp(evt);
if (this.zoomBox) { this.removeZoomBox(); } this.mouseDragStart = null;
defaultMouseOut: function (evt) { if (this.mouseDragStart != null && OpenLayers.Util.mouseLeft(evt, this.map.div)) { this.defaultMouseUp(evt); } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c38874b3745030f20fadeecec3f517ed70e9b134/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
this.defaultMouseUp(evt);
if (this.zoomBox) { this.removeZoomBox(); } this.mouseDragStart = null;
defaultMouseOut: function (evt) { if (this.mouseDragStart != null && OpenLayers.Util.mouseLeft(evt, this.map.div)) { this.defaultMouseUp(evt); } },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c38874b3745030f20fadeecec3f517ed70e9b134/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
}
},
defaultMouseUp: function (evt) { if (this.zoomBox) { var start = this.map.getLonLatFromPixel( this.mouseDragStart ); var end = this.map.getLonLatFromPixel( evt.xy ); var top = Math.max(start.lat, end.lat); var bottom = Math.min(start.lat, end.lat); var left = Math.min(start.lon, end.lon); var right = Math.max(start.lon, end.lon); var bounds = new OpenLayers.Bounds(left, bottom, right, top); var zoom = this.map.getZoomForExtent(bounds); this.map.setCenter(new OpenLayers.LonLat( (start.lon + end.lon) / 2, (start.lat + end.lat) / 2 ), zoom); this.map.viewPortDiv.removeChild(document.getElementById("zoomBox")); this.zoomBox = null; } this.mouseDragStart = null; this.map.div.style.cursor = "default"; }
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7683e0853a92900836d3fc75169ddf6d5bf0b478/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
this.map.setCenter(this.map.center);
if (this.performedDrag) { this.map.setCenter(this.map.center); }
defaultMouseUp: function (evt) { if (!Event.isLeftClick(evt)) return; switch (this.mode) { case "zoombox": var start = this.map.getLonLatFromViewPortPx( this.mouseDragStart ); var end = this.map.getLonLatFromViewPortPx( evt.xy ); var top = Math.max(start.lat, end.lat); var bottom = Math.min(start.lat, end.lat); var left = Math.min(start.lon, end.lon); var right = Math.max(start.lon, end.lon); var bounds = new OpenLayers.Bounds(left, bottom, right, top); var zoom = this.map.getZoomForExtent(bounds); this.map.setCenter(new OpenLayers.LonLat( (start.lon + end.lon) / 2, (start.lat + end.lat) / 2 ), zoom); this.map.viewPortDiv.removeChild(document.getElementById("zoomBox")); this.zoomBox = null; this.leaveMode(); break; case "pan": this.map.setCenter(this.map.center); } document.onselectstart = null; this.mouseDragStart = null; this.map.div.style.cursor = "default"; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
if (!Event.isLeftClick(evt)) return;
defaultMouseUp: function (evt) { if (this.zoomBox) { var start = this.map.getLonLatFromViewPortPx( this.mouseDragStart ); var end = this.map.getLonLatFromViewPortPx( evt.xy ); var top = Math.max(start.lat, end.lat); var bottom = Math.min(start.lat, end.lat); var left = Math.min(start.lon, end.lon); var right = Math.max(start.lon, end.lon); var bounds = new OpenLayers.Bounds(left, bottom, right, top); var zoom = this.map.getZoomForExtent(bounds); this.map.setCenter(new OpenLayers.LonLat( (start.lon + end.lon) / 2, (start.lat + end.lat) / 2 ), zoom); this.map.viewPortDiv.removeChild(document.getElementById("zoomBox")); this.zoomBox = null; } else { this.map.setCenter(this.map.center); } document.onselectstart=null; this.mouseDragStart = null; this.map.div.style.cursor = "default"; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
if (!Event.isLeftClick(evt)) return;
defaultMouseUp: function (evt) { switch (this.mode) { case "zoombox": var start = this.map.getLonLatFromViewPortPx( this.mouseDragStart ); var end = this.map.getLonLatFromViewPortPx( evt.xy ); var top = Math.max(start.lat, end.lat); var bottom = Math.min(start.lat, end.lat); var left = Math.min(start.lon, end.lon); var right = Math.max(start.lon, end.lon); var bounds = new OpenLayers.Bounds(left, bottom, right, top); var zoom = this.map.getZoomForExtent(bounds); this.map.setCenter(new OpenLayers.LonLat( (start.lon + end.lon) / 2, (start.lat + end.lat) / 2 ), zoom); this.map.viewPortDiv.removeChild(document.getElementById("zoomBox")); this.zoomBox = null; this.leaveMode(); break; case "pan": this.map.setCenter(this.map.center); } document.onselectstart = null; this.mouseDragStart = null; this.map.div.style.cursor = "default"; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
if (!Event.isLeftClick(evt)) return;
defaultMouseUp: function (evt) { switch (this.mode) { case "zoombox": var start = this.map.getLonLatFromViewPortPx( this.mouseDragStart ); var end = this.map.getLonLatFromViewPortPx( evt.xy ); var top = Math.max(start.lat, end.lat); var bottom = Math.min(start.lat, end.lat); var left = Math.min(start.lon, end.lon); var right = Math.max(start.lon, end.lon); var bounds = new OpenLayers.Bounds(left, bottom, right, top); var zoom = this.map.getZoomForExtent(bounds); this.map.setCenter(new OpenLayers.LonLat( (start.lon + end.lon) / 2, (start.lat + end.lat) / 2 ), zoom); this.map.viewPortDiv.removeChild(document.getElementById("zoomBox")); this.zoomBox = null; this.leaveMode(); break; case "pan": this.map.setCenter(this.map.center); } document.onselectstart = null; this.mouseDragStart = null; this.map.div.style.cursor = "default"; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
}
},
defaultMouseUp: function (evt) { if (this.zoomBox) { var start = this.map.getLonLatFromPixel( this.mouseDragStart ); var end = this.map.getLonLatFromPixel( evt.xy ); var top = Math.max(start.lat, end.lat); var bottom = Math.min(start.lat, end.lat); var left = Math.min(start.lon, end.lon); var right = Math.max(start.lon, end.lon); var bounds = new OpenLayers.Bounds(left, bottom, right, top); var zoom = this.map.getZoomForExtent(bounds); this.map.setCenter(new OpenLayers.LonLat( (start.lon + end.lon) / 2, (start.lat + end.lat) / 2 ), zoom); this.map.viewPortDiv.removeChild(document.getElementById("zoomBox")); this.zoomBox = null; } this.mouseDragStart = null; this.map.div.style.cursor = "default"; }
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7683e0853a92900836d3fc75169ddf6d5bf0b478/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
this.map.setCenter(this.map.center);
if (this.performedDrag) { this.map.setCenter(this.map.center); }
defaultMouseUp: function (evt) { if (!Event.isLeftClick(evt)) return; switch (this.mode) { case "zoombox": var start = this.map.getLonLatFromViewPortPx( this.mouseDragStart ); var end = this.map.getLonLatFromViewPortPx( evt.xy ); var top = Math.max(start.lat, end.lat); var bottom = Math.min(start.lat, end.lat); var left = Math.min(start.lon, end.lon); var right = Math.max(start.lon, end.lon); var bounds = new OpenLayers.Bounds(left, bottom, right, top); var zoom = this.map.getZoomForExtent(bounds); this.map.setCenter(new OpenLayers.LonLat( (start.lon + end.lon) / 2, (start.lat + end.lat) / 2 ), zoom); this.map.viewPortDiv.removeChild(document.getElementById("zoomBox")); this.zoomBox = null; this.leaveMode(); break; case "pan": this.map.setCenter(this.map.center); } document.onselectstart = null; this.mouseDragStart = null; this.map.div.style.cursor = "default"; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/MouseToolbar.js/clean/lib/OpenLayers/Control/MouseToolbar.js
if (!Event.isLeftClick(evt)) return;
defaultMouseUp: function (evt) { if (this.zoomBox) { var start = this.map.getLonLatFromViewPortPx( this.mouseDragStart ); var end = this.map.getLonLatFromViewPortPx( evt.xy ); var top = Math.max(start.lat, end.lat); var bottom = Math.min(start.lat, end.lat); var left = Math.min(start.lon, end.lon); var right = Math.max(start.lon, end.lon); var bounds = new OpenLayers.Bounds(left, bottom, right, top); var zoom = this.map.getZoomForExtent(bounds); this.map.setCenter(new OpenLayers.LonLat( (start.lon + end.lon) / 2, (start.lat + end.lat) / 2 ), zoom); this.map.viewPortDiv.removeChild(document.getElementById("zoomBox")); this.zoomBox = null; } else { this.map.setCenter(this.map.center); } document.onselectstart=null; this.mouseDragStart = null; this.map.div.style.cursor = "default"; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
defaultWheelDown: function() { this.map.zoomOut();
defaultWheelDown: function(evt) { if (this.map.getZoom() > 0) { this.map.setCenter(this.map.getLonLatFromPixel(evt.xy), this.map.getZoom() - 1); }
defaultWheelDown: function() { this.map.zoomOut(); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/15c2ab578fabf2c24ed636bbb490243d82a68076/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
defaultWheelDown: function() { this.map.zoomOut();
defaultWheelDown: function(evt) { if (this.map.getZoom() > 0) { this.map.setCenter(this.map.getLonLatFromPixel(evt.xy), this.map.getZoom() - 1); }
defaultWheelDown: function() { this.map.zoomOut(); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/15c2ab578fabf2c24ed636bbb490243d82a68076/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
defaultWheelUp: function() { this.map.zoomIn();
defaultWheelUp: function(evt) { if (this.map.getZoom() <= this.map.getNumZoomLevels()) { this.map.setCenter(this.map.getLonLatFromPixel(evt.xy), this.map.getZoom() + 1); }
defaultWheelUp: function() { this.map.zoomIn(); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/15c2ab578fabf2c24ed636bbb490243d82a68076/MouseDefaults.js/clean/lib/OpenLayers/Control/MouseDefaults.js
defaultWheelUp: function() { this.map.zoomIn();
defaultWheelUp: function(evt) { if (this.map.getZoom() <= this.map.getNumZoomLevels()) { this.map.setCenter(this.map.getLonLatFromPixel(evt.xy), this.map.getZoom() + 1); }
defaultWheelUp: function() { this.map.zoomIn(); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/15c2ab578fabf2c24ed636bbb490243d82a68076/MouseDefaults.js/buggy/lib/OpenLayers/Control/MouseDefaults.js
if(!tinyMCE.settings['contextmenu_skip_plugin_css']){tinyMCE.loadCSS(tinyMCE.baseURL+"/plugins/contextmenu/css/contextmenu.css");}var TinyMCE_ContextMenuPlugin={_contextMenu:null,getInfo:function(){return{longname:'Context menus',author:'Moxiecode Systems',authorurl:'http:
if(!tinyMCE.settings['contextmenu_skip_plugin_css']){tinyMCE.loadCSS(tinyMCE.baseURL+"/plugins/contextmenu/css/contextmenu.css")}var TinyMCE_ContextMenuPlugin={_contextMenu:null,getInfo:function(){return{longname:'Context menus',author:'Moxiecode Systems AB',authorurl:'http:
if(!tinyMCE.settings['contextmenu_skip_plugin_css']){tinyMCE.loadCSS(tinyMCE.baseURL+"/plugins/contextmenu/css/contextmenu.css");}var TinyMCE_ContextMenuPlugin={_contextMenu:null,getInfo:function(){return{longname:'Context menus',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_contextmenu.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},initInstance:function(inst){if(tinyMCE.isMSIE5_0&&tinyMCE.isOpera)return;TinyMCE_ContextMenuPlugin._contextMenu=new TinyMCE_ContextMenu({commandhandler:"TinyMCE_ContextMenuPlugin._commandHandler",spacer_image:tinyMCE.baseURL+"/plugins/contextmenu/images/spacer.gif"});tinyMCE.addEvent(inst.getDoc(),"click",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(inst.getDoc(),"keypress",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(inst.getDoc(),"keydown",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(document,"click",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(document,"keypress",TinyMCE_ContextMenuPlugin._hideContextMenu);tinyMCE.addEvent(document,"keydown",TinyMCE_ContextMenuPlugin._hideContextMenu);if(tinyMCE.isGecko){tinyMCE.addEvent(inst.getDoc(),"contextmenu",function(e){TinyMCE_ContextMenuPlugin._showContextMenu(tinyMCE.isMSIE?inst.contentWindow.event:e,inst);});}else tinyMCE.addEvent(inst.getDoc(),"contextmenu",TinyMCE_ContextMenuPlugin._onContextMenu);},_onContextMenu:function(e){var elm=tinyMCE.isMSIE?e.srcElement:e.target;var targetInst,body;if((body=tinyMCE.getParentElement(elm,"body"))!=null){for(var n in tinyMCE.instances){var inst=tinyMCE.instances[n];if(!tinyMCE.isInstance(inst))continue;if(body==inst.getBody()){targetInst=inst;break;}}return TinyMCE_ContextMenuPlugin._showContextMenu(tinyMCE.isMSIE?targetInst.contentWindow.event:e,targetInst);}},_showContextMenu:function(e,inst){function getAttrib(elm,name){return elm.getAttribute(name)?elm.getAttribute(name):"";}var x,y,elm,contextMenu;var pos=tinyMCE.getAbsPosition(inst.iframeElement);x=tinyMCE.isMSIE?e.screenX:pos.absLeft+(e.pageX-inst.getBody().scrollLeft);y=tinyMCE.isMSIE?e.screenY:pos.absTop+(e.pageY-inst.getBody().scrollTop);elm=tinyMCE.isMSIE?e.srcElement:e.target;contextMenu=this._contextMenu;contextMenu.inst=inst;window.setTimeout(function(){var theme=tinyMCE.getParam("theme");contextMenu.clearAll();var sel=inst.selection.getSelectedText().length!=0||elm.nodeName=="IMG";contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/cut.gif","$lang_cut_desc","Cut","",!sel);contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/copy.gif","$lang_copy_desc","Copy","",!sel);contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/paste.gif","$lang_paste_desc","Paste","",false);if(sel||(elm?(elm.nodeName=='A')||(elm.nodeName=='IMG'):false)){contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/themes/advanced/images/link.gif","$lang_link_desc",inst.hasPlugin("advlink")?"mceAdvLink":"mceLink");contextMenu.addItem(tinyMCE.baseURL+"/themes/advanced/images/unlink.gif","$lang_unlink_desc","unlink","",(elm?(elm.nodeName!='A')&&(elm.nodeName!='IMG'):true));}elm=tinyMCE.getParentElement(elm,"img,table,td"+(inst.hasPlugin("advhr")?',hr':''));if(elm){switch(elm.nodeName){case"IMG":contextMenu.addSeparator();if(tinyMCE.getAttrib(elm,'class').indexOf('mceItemFlash')!=-1)contextMenu.addItem(tinyMCE.baseURL+"/plugins/flash/images/flash.gif","$lang_flash_props","mceFlash");else contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/image.gif","$lang_image_props_desc",inst.hasPlugin("advimage")?"mceAdvImage":"mceImage");break;case"HR":contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/advhr/images/advhr.gif","$lang_insert_advhr_desc","mceAdvancedHr");break;case"TABLE":case"TD":if(inst.hasPlugin("table")){var colspan=(elm.nodeName=="TABLE")?"":getAttrib(elm,"colspan");var rowspan=(elm.nodeName=="TABLE")?"":getAttrib(elm,"rowspan");colspan=colspan==""?"1":colspan;rowspan=rowspan==""?"1":rowspan;contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/cut.gif","$lang_table_cut_row_desc","mceTableCutRow");contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/copy.gif","$lang_table_copy_row_desc","mceTableCopyRow");contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/paste.gif","$lang_table_paste_row_before_desc","mceTablePasteRowBefore","",inst.tableRowClipboard==null);contextMenu.addItem(tinyMCE.baseURL+"/themes/"+theme+"/images/paste.gif","$lang_table_paste_row_after_desc","mceTablePasteRowAfter","",inst.tableRowClipboard==null);contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table.gif","$lang_table_desc","mceInsertTable","insert");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table.gif","$lang_table_props_desc","mceInsertTable");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_cell_props.gif","$lang_table_cell_desc","mceTableCellProps");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_delete.gif","$lang_table_del","mceTableDelete");contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_row_props.gif","$lang_table_row_desc","mceTableRowProps");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_row_before.gif","$lang_table_row_before_desc","mceTableInsertRowBefore");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_row_after.gif","$lang_table_row_after_desc","mceTableInsertRowAfter");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_delete_row.gif","$lang_table_delete_row_desc","mceTableDeleteRow");contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_col_before.gif","$lang_table_col_before_desc","mceTableInsertColBefore");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_insert_col_after.gif","$lang_table_col_after_desc","mceTableInsertColAfter");contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_delete_col.gif","$lang_table_delete_col_desc","mceTableDeleteCol");contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_split_cells.gif","$lang_table_split_cells_desc","mceTableSplitCells","",(colspan=="1"&&rowspan=="1"));contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table_merge_cells.gif","$lang_table_merge_cells_desc","mceTableMergeCells","",false);}break;}}else{if(inst.hasPlugin("table")){contextMenu.addSeparator();contextMenu.addItem(tinyMCE.baseURL+"/plugins/table/images/table.gif","$lang_table_desc","mceInsertTable","insert");}}contextMenu.show(x,y);},10);tinyMCE.cancelEvent(e);return false;},_hideContextMenu:function(){if(TinyMCE_ContextMenuPlugin._contextMenu)TinyMCE_ContextMenuPlugin._contextMenu.hide();},_commandHandler:function(command,value){var cm=TinyMCE_ContextMenuPlugin._contextMenu;cm.hide();var ui=false;if(command=="mceInsertTable"||command=="mceTableCellProps"||command=="mceTableRowProps"||command=="mceTableMergeCells")ui=true;if(command=="Paste")value=null;if(tinyMCE.getParam("dialog_type")=="modal"&&tinyMCE.isMSIE){window.setTimeout(function(){cm.inst.execCommand(command,ui,value);},100);}else cm.inst.execCommand(command,ui,value);}};tinyMCE.addPlugin("contextmenu",TinyMCE_ContextMenuPlugin);function TinyMCE_ContextMenu(settings){function defParam(key,def_val){settings[key]=typeof(settings[key])!="undefined"?settings[key]:def_val;}var self=this;this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.contextMenuDiv=document.createElement("div");this.contextMenuDiv.className="contextMenu";this.contextMenuDiv.setAttribute("class","contextMenu");this.contextMenuDiv.style.display="none";this.contextMenuDiv.style.position='absolute';this.contextMenuDiv.style.zindex=1000;this.contextMenuDiv.style.left='0';this.contextMenuDiv.style.top='0';this.contextMenuDiv.unselectable="on";document.body.appendChild(this.contextMenuDiv);defParam("commandhandler","");defParam("spacer_image","images/spacer.gif");this.items=new Array();this.settings=settings;this.html="";if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0&&!tinyMCE.isOpera){this.pop=window.createPopup();doc=this.pop.document;doc.open();doc.write('<html><head><link href="'+tinyMCE.baseURL+'/plugins/contextmenu/css/contextmenu.css" rel="stylesheet" type="text/css" /></head><body unselectable="yes" class="contextMenuIEPopup"></body></html>');doc.close();}};TinyMCE_ContextMenu.prototype={clearAll:function(){this.html="";this.contextMenuDiv.innerHTML="";},addSeparator:function(){this.html+='<tr class="contextMenuItem"><td class="contextMenuIcon"><img src="'+this.settings['spacer_image']+'" width="20" height="1" class="contextMenuImage" /></td><td><img class="contextMenuSeparator" width="1" height="1" src="'+this.settings['spacer_image']+'" /></td></tr>';},addItem:function(icon,title,command,value,disabled){if(title.charAt(0)=='$')title=tinyMCE.getLang(title.substring(1));var onMouseDown='';var html='';if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0)onMouseDown='contextMenu.execCommand(\''+command+'\', \''+value+'\');return false;';else onMouseDown=this.settings['commandhandler']+'(\''+command+'\', \''+value+'\');return false;';if(icon=="")icon=this.settings['spacer_image'];if(!disabled)html+='<tr class="contextMenuItem">';else html+='<tr class="contextMenuItemDisabled">';html+='<td class="contextMenuIcon"><img src="'+icon+'" width="20" height="20" class="contextMenuImage" /></td>';html+='<td><div class="contextMenuText">';html+='<a href="javascript:void(0);" onclick="'+onMouseDown+'" onmousedown="return false;">&#160;';html+=title;html+='&#160;</a>';html+='</div></td>';html+='</tr>';this.html+=html;},show:function(x,y){var vp,width,height;if(this.html=="")return;var html='';html+='<a href="#"></a><table border="0" cellpadding="0" cellspacing="0">';html+=this.html;html+='</table>';this.contextMenuDiv.innerHTML=html;this.contextMenuDiv.style.display="block";width=this.contextMenuDiv.offsetWidth;height=this.contextMenuDiv.offsetHeight;this.contextMenuDiv.style.display="none";if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0&&!tinyMCE.isOpera){this.pop.document.body.innerHTML='<div class="contextMenu">'+html+"</div>";this.pop.document.tinyMCE=tinyMCE;this.pop.document.contextMenu=this;this.pop.show(x,y,width,height);}else{vp=this.getViewPort();this.contextMenuDiv.style.left=(x>vp.width-width?vp.width-width:x)+'px';this.contextMenuDiv.style.top=(y>vp.height-height?vp.height-height:y)+'px';this.contextMenuDiv.style.display="block";}},getViewPort:function(){return{width:document.documentElement.offsetWidth||document.body.offsetWidth,height:self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight};},hide:function(){if(tinyMCE.isMSIE&&!tinyMCE.isMSIE5_0&&!tinyMCE.isOpera)this.pop.hide();else this.contextMenuDiv.style.display="none";},execCommand:function(command,value){eval(this.settings['commandhandler']+"(command, value);");}};
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/contextmenu/editor_plugin.js
tinyMCE.importPluginLanguagePack('searchreplace','en,tr,sv,zh_cn,fa,fr_ca,fr,de,pl,pt_br,cs,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_SearchReplacePlugin={getInfo:function(){return{longname:'Search/Replace',author:'Moxiecode Systems',authorurl:'http:
tinyMCE.importPluginLanguagePack('searchreplace');var TinyMCE_SearchReplacePlugin={getInfo:function(){return{longname:'Search/Replace',author:'Moxiecode Systems AB',authorurl:'http:
tinyMCE.importPluginLanguagePack('searchreplace','en,tr,sv,zh_cn,fa,fr_ca,fr,de,pl,pt_br,cs,nl,da,he,nb,hu,ru,ru_KOI8-R,ru_UTF-8,nn,fi,cy,es,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_SearchReplacePlugin={getInfo:function(){return{longname:'Search/Replace',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_searchreplace.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},initInstance:function(inst){inst.addShortcut('ctrl','f','lang_searchreplace_search_desc','mceSearch',true);},getControlHTML:function(cn){switch(cn){case"search":return tinyMCE.getButtonHTML(cn,'lang_searchreplace_search_desc','{$pluginurl}/images/search.gif','mceSearch',true);case"replace":return tinyMCE.getButtonHTML(cn,'lang_searchreplace_replace_desc','{$pluginurl}/images/replace.gif','mceSearchReplace',true);}return"";},execCommand:function(editor_id,element,command,user_interface,value){var instance=tinyMCE.getInstanceById(editor_id);function defValue(key,default_value){value[key]=typeof(value[key])=="undefined"?default_value:value[key];}function replaceSel(search_str,str,back){instance.execCommand('mceInsertContent',false,str);}if(!value)value=new Array();defValue("editor_id",editor_id);defValue("searchstring","");defValue("replacestring",null);defValue("replacemode","none");defValue("casesensitive",false);defValue("backwards",false);defValue("wrap",false);defValue("wholeword",false);defValue("inline","yes");switch(command){case"mceResetSearch":tinyMCE.lastSearchRng=null;return true;case"mceSearch":if(user_interface){var template=new Array();if(value['replacestring']!=null){template['file']='../../plugins/searchreplace/replace.htm';template['width']=320;template['height']=100+(tinyMCE.isNS7?20:0);template['width']+=tinyMCE.getLang('lang_searchreplace_replace_delta_width',0);template['height']+=tinyMCE.getLang('lang_searchreplace_replace_delta_height',0);}else{template['file']='../../plugins/searchreplace/search.htm';template['width']=310;template['height']=105+(tinyMCE.isNS7?25:0);template['width']+=tinyMCE.getLang('lang_searchreplace_search_delta_width',0);template['height']+=tinyMCE.getLang('lang_searchreplace_replace_delta_height',0);}instance.execCommand('SelectAll');if(tinyMCE.isMSIE){var r=instance.selection.getRng();r.collapse(true);r.select();}else instance.selection.getSel().collapseToStart();tinyMCE.openWindow(template,value);}else{var win=tinyMCE.getInstanceById(editor_id).contentWindow;var doc=tinyMCE.getInstanceById(editor_id).contentWindow.document;var body=tinyMCE.getInstanceById(editor_id).contentWindow.document.body;if(body.innerHTML==""){alert(tinyMCE.getLang('lang_searchreplace_notfound'));return true;}if(value['replacemode']=="current"){replaceSel(value['string'],value['replacestring'],value['backwards']);value['replacemode']="none";tinyMCE.execInstanceCommand(editor_id,'mceSearch',user_interface,value,false);return true;}if(tinyMCE.isMSIE){var rng=tinyMCE.lastSearchRng?tinyMCE.lastSearchRng:doc.selection.createRange();var flags=0;if(value['wholeword'])flags=flags|2;if(value['casesensitive'])flags=flags|4;if(!rng.findText){alert('This operation is currently not supported by this browser.');return true;}if(value['replacemode']=="all"){while(rng.findText(value['string'],value['backwards']?-1:1,flags)){rng.scrollIntoView();rng.select();rng.collapse(false);replaceSel(value['string'],value['replacestring'],value['backwards']);}alert(tinyMCE.getLang('lang_searchreplace_allreplaced'));return true;}if(rng.findText(value['string'],value['backwards']?-1:1,flags)){rng.scrollIntoView();rng.select();rng.collapse(value['backwards']);tinyMCE.lastSearchRng=rng;}else alert(tinyMCE.getLang('lang_searchreplace_notfound'));}else{if(value['replacemode']=="all"){while(win.find(value['string'],value['casesensitive'],value['backwards'],value['wrap'],value['wholeword'],false,false))replaceSel(value['string'],value['replacestring'],value['backwards']);alert(tinyMCE.getLang('lang_searchreplace_allreplaced'));return true;}if(!win.find(value['string'],value['casesensitive'],value['backwards'],value['wrap'],value['wholeword'],false,false))alert(tinyMCE.getLang('lang_searchreplace_notfound'));}}return true;case"mceSearchReplace":value['replacestring']="";tinyMCE.execInstanceCommand(editor_id,'mceSearch',user_interface,value,false);return true;}return false;}};tinyMCE.addPlugin("searchreplace",TinyMCE_SearchReplacePlugin);
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin.js/buggy/mambots/editors/tinymce/jscripts/tiny_mce/plugins/searchreplace/editor_plugin.js
delete document.channelselector.channel.options[i];
document.channelselector.channel.options[i] = null;
function deleteChannelOptions(){ var j = document.channelselector.channel.options.length; for (var i = j - 1 ; i >= 0; i--) delete document.channelselector.channel.options[i];}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/5c8deda506d04de03cceee6b1c7487bf0b402406/zap.js/buggy/tuxbox/enigma/data/htdocs/zap.js
document.cookie = name + &#34;=&#34; + ((path) ? &#34;; path=&#34; + path : &#34;&#34;) + ((domain) ? &#34;; domain=&#34; + domain : &#34;&#34;) + &#34;; expires=Thu, 01-Jan-70 00:00:01 GMT&#34;;
document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";
function deleteCookie(name, path, domain) { if (getCookie(name)) { document.cookie = name + &#34;=&#34; + ((path) ? &#34;; path=&#34; + path : &#34;&#34;) + ((domain) ? &#34;; domain=&#34; + domain : &#34;&#34;) + &#34;; expires=Thu, 01-Jan-70 00:00:01 GMT&#34;; }}
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/1922f8ac33d1c5c93a8206be4550d5567d13169b/cookies.js/clean/public/javascripts/cookies.js
tinyMCE.importPluginLanguagePack('table','en,tr,ar,cs,da,de,el,es,fi,fr_ca,hu,it,ja,ko,nl,nb,pl,pt,pt_br,sv,tw,zh_cn,fr,de,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems',authorurl:'http:
tinyMCE.importPluginLanguagePack('table');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems AB',authorurl:'http:
tinyMCE.importPluginLanguagePack('table','en,tr,ar,cs,da,de,el,es,fi,fr_ca,hu,it,ja,ko,nl,nb,pl,pt,pt_br,sv,tw,zh_cn,fr,de,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_table.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},initInstance:function(inst){if(tinyMCE.isGecko){var doc=inst.getDoc();tinyMCE.addEvent(doc,"mouseup",TinyMCE_TablePlugin._mouseDownHandler);}inst.tableRowClipboard=null;},getControlHTML:function(control_name){var controls=new Array(['table','table.gif','lang_table_desc','mceInsertTable',true],['delete_col','table_delete_col.gif','lang_table_delete_col_desc','mceTableDeleteCol'],['delete_row','table_delete_row.gif','lang_table_delete_row_desc','mceTableDeleteRow'],['col_after','table_insert_col_after.gif','lang_table_col_after_desc','mceTableInsertColAfter'],['col_before','table_insert_col_before.gif','lang_table_col_before_desc','mceTableInsertColBefore'],['row_after','table_insert_row_after.gif','lang_table_row_after_desc','mceTableInsertRowAfter'],['row_before','table_insert_row_before.gif','lang_table_row_before_desc','mceTableInsertRowBefore'],['row_props','table_row_props.gif','lang_table_row_desc','mceTableRowProps',true],['cell_props','table_cell_props.gif','lang_table_cell_desc','mceTableCellProps',true],['split_cells','table_split_cells.gif','lang_table_split_cells_desc','mceTableSplitCells',true],['merge_cells','table_merge_cells.gif','lang_table_merge_cells_desc','mceTableMergeCells',true]);for(var i=0;i<controls.length;i++){var but=controls[i];var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\''+but[3]+'\', '+(but.length>4?but[4]:false)+(but.length>5?', \''+but[5]+'\'':'')+');return false;';if(but[0]==control_name)return tinyMCE.getButtonHTML(control_name,but[2],'{$pluginurl}/images/'+but[1],but[3],(but.length>4?but[4]:false));}if(control_name=="tablecontrols"){var html="";html+=tinyMCE.getControlHTML("table");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("row_props");html+=tinyMCE.getControlHTML("cell_props");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("row_before");html+=tinyMCE.getControlHTML("row_after");html+=tinyMCE.getControlHTML("delete_row");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("col_before");html+=tinyMCE.getControlHTML("col_after");html+=tinyMCE.getControlHTML("delete_col");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("split_cells");html+=tinyMCE.getControlHTML("merge_cells");return html;}return"";},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceInsertTable":case"mceTableRowProps":case"mceTableCellProps":case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":case"mceTableDelete":var inst=tinyMCE.getInstanceById(editor_id);inst.execCommand('mceBeginUndoLevel');TinyMCE_TablePlugin._doExecCommand(editor_id,element,command,user_interface,value);inst.execCommand('mceEndUndoLevel');return true;}return false;},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){var colspan="1",rowspan="1";var inst=tinyMCE.getInstanceById(editor_id);tinyMCE.switchClass(editor_id+'_table','mceButtonNormal');tinyMCE.switchClass(editor_id+'_row_props','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_cell_props','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_row_before','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_row_after','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_delete_row','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_col_before','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_col_after','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_delete_col','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_split_cells','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_merge_cells','mceButtonDisabled');if(tdElm=tinyMCE.getParentElement(node,"td,th")){tinyMCE.switchClass(editor_id+'_cell_props','mceButtonSelected');tinyMCE.switchClass(editor_id+'_row_before','mceButtonNormal');tinyMCE.switchClass(editor_id+'_row_after','mceButtonNormal');tinyMCE.switchClass(editor_id+'_delete_row','mceButtonNormal');tinyMCE.switchClass(editor_id+'_col_before','mceButtonNormal');tinyMCE.switchClass(editor_id+'_col_after','mceButtonNormal');tinyMCE.switchClass(editor_id+'_delete_col','mceButtonNormal');colspan=tinyMCE.getAttrib(tdElm,"colspan");rowspan=tinyMCE.getAttrib(tdElm,"rowspan");colspan=colspan==""?"1":colspan;rowspan=rowspan==""?"1":rowspan;if(colspan!="1"||rowspan!="1")tinyMCE.switchClass(editor_id+'_split_cells','mceButtonNormal');}if(tinyMCE.getParentElement(node,"tr"))tinyMCE.switchClass(editor_id+'_row_props','mceButtonSelected');if(tinyMCE.getParentElement(node,"table")){tinyMCE.switchClass(editor_id+'_table','mceButtonSelected');tinyMCE.switchClass(editor_id+'_merge_cells','mceButtonNormal');}},_mouseDownHandler:function(e){var elm=tinyMCE.isMSIE?event.srcElement:e.target;var focusElm=tinyMCE.selectedInstance.getFocusElement();if(elm.nodeName=="BODY"&&(focusElm.nodeName=="TD"||focusElm.nodeName=="TH"||(focusElm.parentNode&&focusElm.parentNode.nodeName=="TD")||(focusElm.parentNode&&focusElm.parentNode.nodeName=="TH"))){window.setTimeout(function(){var tableElm=tinyMCE.getParentElement(focusElm,"table");tinyMCE.handleVisualAid(tableElm,true,tinyMCE.settings['visual'],tinyMCE.selectedInstance);},10);}},_doExecCommand:function(editor_id,element,command,user_interface,value){var inst=tinyMCE.getInstanceById(editor_id);var focusElm=inst.getFocusElement();var trElm=tinyMCE.getParentElement(focusElm,"tr");var tdElm=tinyMCE.getParentElement(focusElm,"td,th");var tableElm=tinyMCE.getParentElement(focusElm,"table");var doc=inst.contentWindow.document;var tableBorder=tableElm?tableElm.getAttribute("border"):"";if(trElm&&tdElm==null)tdElm=trElm.cells[0];function inArray(ar,v){for(var i=0;i<ar.length;i++){if(ar[i].length>0&&inArray(ar[i],v))return true;if(ar[i]==v)return true;}return false;}function makeTD(){var newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";}function getColRowSpan(td){var colspan=tinyMCE.getAttrib(td,"colspan");var rowspan=tinyMCE.getAttrib(td,"rowspan");colspan=colspan==""?1:parseInt(colspan);rowspan=rowspan==""?1:parseInt(rowspan);return{colspan:colspan,rowspan:rowspan};}function getCellPos(grid,td){for(var y=0;y<grid.length;y++){for(var x=0;x<grid[y].length;x++){if(grid[y][x]==td)return{cellindex:x,rowindex:y};}}return null;}function getCell(grid,row,col){if(grid[row]&&grid[row][col])return grid[row][col];return null;}function getTableGrid(table){var grid=new Array();var rows=table.rows;for(var y=0;y<rows.length;y++){for(var x=0;x<rows[y].cells.length;x++){var td=rows[y].cells[x];var sd=getColRowSpan(td);for(xstart=x;grid[y]&&grid[y][xstart];xstart++);for(var y2=y;y2<y+sd['rowspan'];y2++){if(!grid[y2])grid[y2]=new Array();for(var x2=xstart;x2<xstart+sd['colspan'];x2++){grid[y2][x2]=td;}}}}return grid;}function trimRow(table,tr,td,new_tr){var grid=getTableGrid(table);var cpos=getCellPos(grid,td);if(new_tr.cells.length!=tr.childNodes.length){var cells=tr.childNodes;var lastElm=null;for(var x=0;td=getCell(grid,cpos.rowindex,x);x++){var remove=true;var sd=getColRowSpan(td);if(inArray(cells,td)){new_tr.childNodes[x]._delete=true;}else if((lastElm==null||td!=lastElm)&&sd.colspan>1){for(var i=x;i<x+td.colSpan;i++)new_tr.childNodes[i]._delete=true;}if((lastElm==null||td!=lastElm)&&sd.rowspan>1)td.rowSpan=sd.rowspan+1;lastElm=td;}deleteMarked(tableElm);}}function prevElm(node,name){while((node=node.previousSibling)!=null){if(node.nodeName==name)return node;}return null;}function nextElm(node,names){var namesAr=names.split(',');while((node=node.nextSibling)!=null){for(var i=0;i<namesAr.length;i++){if(node.nodeName.toLowerCase()==namesAr[i].toLowerCase())return node;}}return null;}function deleteMarked(tbl){if(tbl.rows==0)return;var tr=tbl.rows[0];do{var next=nextElm(tr,"TR");if(tr._delete){tr.parentNode.removeChild(tr);continue;}var td=tr.cells[0];if(td.cells>1){do{var nexttd=nextElm(td,"TD,TH");if(td._delete)td.parentNode.removeChild(td);}while((td=nexttd)!=null);}}while((tr=next)!=null);}function addRows(td_elm,tr_elm,rowspan){td_elm.rowSpan=1;var trNext=nextElm(tr_elm,"TR");for(var i=1;i<rowspan&&trNext;i++){var newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";if(tinyMCE.isMSIE)trNext.insertBefore(newTD,trNext.cells(td_elm.cellIndex));else trNext.insertBefore(newTD,trNext.cells[td_elm.cellIndex]);trNext=nextElm(trNext,"TR");}}function copyRow(doc,table,tr){var grid=getTableGrid(table);var newTR=tr.cloneNode(false);var cpos=getCellPos(grid,tr.cells[0]);var lastCell=null;var tableBorder=tinyMCE.getAttrib(table,"border");var tdElm=null;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){var newTD=null;if(lastCell!=tdElm){for(var i=0;i<tr.cells.length;i++){if(tdElm==tr.cells[i]){newTD=tdElm.cloneNode(true);break;}}}if(newTD==null){newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";}newTD.colSpan=1;newTD.rowSpan=1;newTR.appendChild(newTD);lastCell=tdElm;}return newTR;}switch(command){case"mceTableRowProps":if(trElm==null)return true;if(user_interface){var template=new Array();template['file']='../../plugins/table/row.htm';template['width']=380;template['height']=295;template['width']+=tinyMCE.getLang('lang_table_rowprops_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_rowprops_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes"});}return true;case"mceTableCellProps":if(tdElm==null)return true;if(user_interface){var template=new Array();template['file']='../../plugins/table/cell.htm';template['width']=380;template['height']=295;template['width']+=tinyMCE.getLang('lang_table_cellprops_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_cellprops_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes"});}return true;case"mceInsertTable":if(user_interface){var template=new Array();template['file']='../../plugins/table/table.htm';template['width']=380;template['height']=295;template['width']+=tinyMCE.getLang('lang_table_table_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_table_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes",action:value});}return true;case"mceTableDelete":var table=tinyMCE.getParentElement(inst.getFocusElement(),"table");if(table){table.parentNode.removeChild(table);inst.repaint();}return true;case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":if(!tableElm)return true;if(tableElm!=trElm.parentNode)tableElm=trElm.parentNode;if(tableElm&&trElm){switch(command){case"mceTableInsertRowBefore":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var newTR=doc.createElement("tr");var lastTDElm=null;cpos.rowindex--;if(cpos.rowindex<0)cpos.rowindex=0;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['rowspan']==1){var newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";newTD.colSpan=tdElm.colSpan;newTR.appendChild(newTD);}else tdElm.rowSpan=sd['rowspan']+1;lastTDElm=tdElm;}}trElm.parentNode.insertBefore(newTR,trElm);break;case"mceTableCutRow":if(!trElm||!tdElm)return true;inst.tableRowClipboard=copyRow(doc,tableElm,trElm);inst.execCommand("mceTableDeleteRow");break;case"mceTableCopyRow":if(!trElm||!tdElm)return true;inst.tableRowClipboard=copyRow(doc,tableElm,trElm);break;case"mceTablePasteRowBefore":if(!trElm||!tdElm)return true;var newTR=inst.tableRowClipboard.cloneNode(true);var prevTR=prevElm(trElm,"TR");if(prevTR!=null)trimRow(tableElm,prevTR,prevTR.cells[0],newTR);trElm.parentNode.insertBefore(newTR,trElm);break;case"mceTablePasteRowAfter":if(!trElm||!tdElm)return true;var nextTR=nextElm(trElm,"TR");var newTR=inst.tableRowClipboard.cloneNode(true);trimRow(tableElm,trElm,tdElm,newTR);if(nextTR==null)trElm.parentNode.appendChild(newTR);else nextTR.parentNode.insertBefore(newTR,nextTR);break;case"mceTableInsertRowAfter":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var newTR=doc.createElement("tr");var lastTDElm=null;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['rowspan']==1){var newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";newTD.colSpan=tdElm.colSpan;newTR.appendChild(newTD);}else tdElm.rowSpan=sd['rowspan']+1;lastTDElm=tdElm;}}if(newTR.hasChildNodes()){var nextTR=nextElm(trElm,"TR");if(nextTR)nextTR.parentNode.insertBefore(newTR,nextTR);else tableElm.appendChild(newTR);}break;case"mceTableDeleteRow":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);if(grid.length==1){tableElm.parentNode.removeChild(tableElm);return true;}var cells=trElm.cells;var nextTR=nextElm(trElm,"TR");for(var x=0;x<cells.length;x++){if(cells[x].rowSpan>1){var newTD=cells[x].cloneNode(true);var sd=getColRowSpan(cells[x]);newTD.rowSpan=sd.rowspan-1;var nextTD=nextTR.cells[x];if(nextTD==null)nextTR.appendChild(newTD);else nextTR.insertBefore(newTD,nextTD);}}var lastTDElm=null;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd.rowspan>1){tdElm.rowSpan=sd.rowspan-1;}else{trElm=tdElm.parentNode;if(trElm.parentNode)trElm._delete=true;}lastTDElm=tdElm;}}deleteMarked(tableElm);cpos.rowindex--;if(cpos.rowindex<0)cpos.rowindex=0;inst.selection.selectNode(getCell(grid,cpos.rowindex,0),true,true);break;case"mceTableInsertColBefore":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']==1){var newTD=doc.createElement(tdElm.nodeName);newTD.innerHTML="&nbsp;";newTD.rowSpan=tdElm.rowSpan;tdElm.parentNode.insertBefore(newTD,tdElm);}else tdElm.colSpan++;lastTDElm=tdElm;}}break;case"mceTableInsertColAfter":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']==1){var newTD=doc.createElement(tdElm.nodeName);newTD.innerHTML="&nbsp;";newTD.rowSpan=tdElm.rowSpan;var nextTD=nextElm(tdElm,"TD,TH");if(nextTD==null)tdElm.parentNode.appendChild(newTD);else nextTD.parentNode.insertBefore(newTD,nextTD);}else tdElm.colSpan++;lastTDElm=tdElm;}}break;case"mceTableDeleteCol":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;if(grid.length>1&&grid[0].length<=1){tableElm.parentNode.removeChild(tableElm);return true;}for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']>1)tdElm.colSpan=sd['colspan']-1;else{if(tdElm.parentNode)tdElm.parentNode.removeChild(tdElm);}lastTDElm=tdElm;}}cpos.cellindex--;if(cpos.cellindex<0)cpos.cellindex=0;inst.selection.selectNode(getCell(grid,0,cpos.cellindex),true,true);break;case"mceTableSplitCells":if(!trElm||!tdElm)return true;var spandata=getColRowSpan(tdElm);var colspan=spandata["colspan"];var rowspan=spandata["rowspan"];if(colspan>1||rowspan>1){tdElm.colSpan=1;for(var i=1;i<colspan;i++){var newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";trElm.insertBefore(newTD,nextElm(tdElm,"TD,TH"));if(rowspan>1)addRows(newTD,trElm,rowspan);}addRows(tdElm,trElm,rowspan);}tableElm=tinyMCE.getParentElement(inst.getFocusElement(),"table");break;case"mceTableMergeCells":var rows=new Array();var sel=inst.getSel();var grid=getTableGrid(tableElm);if(tinyMCE.isMSIE||sel.rangeCount==1){if(user_interface){var template=new Array();var sp=getColRowSpan(tdElm);template['file']='../../plugins/table/merge_cells.htm';template['width']=250;template['height']=105+(tinyMCE.isNS7?25:0);template['width']+=tinyMCE.getLang('lang_table_merge_cells_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_merge_cells_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes",action:"update",numcols:sp.colspan,numrows:sp.rowspan});return true;}else{var numRows=parseInt(value['numrows']);var numCols=parseInt(value['numcols']);var cpos=getCellPos(grid,tdElm);if((""+numRows)=="NaN")numRows=1;if((""+numCols)=="NaN")numCols=1;var tRows=tableElm.rows;for(var y=cpos.rowindex;y<grid.length;y++){var rowCells=new Array();for(var x=cpos.cellindex;x<grid[y].length;x++){var td=getCell(grid,y,x);if(td&&!inArray(rows,td)&&!inArray(rowCells,td)){var cp=getCellPos(grid,td);if(cp.cellindex<cpos.cellindex+numCols&&cp.rowindex<cpos.rowindex+numRows)rowCells[rowCells.length]=td;}}if(rowCells.length>0)rows[rows.length]=rowCells;}}}else{var cells=new Array();var sel=inst.getSel();var lastTR=null;var curRow=null;var x1=-1,y1=-1,x2,y2;if(sel.rangeCount<2)return true;for(var i=0;i<sel.rangeCount;i++){var rng=sel.getRangeAt(i);var tdElm=rng.startContainer.childNodes[rng.startOffset];if(!tdElm)break;if(tdElm.nodeName=="TD")cells[cells.length]=tdElm;}var tRows=tableElm.rows;for(var y=0;y<tRows.length;y++){var rowCells=new Array();for(var x=0;x<tRows[y].cells.length;x++){var td=tRows[y].cells[x];for(var i=0;i<cells.length;i++){if(td==cells[i]){rowCells[rowCells.length]=td;}}}if(rowCells.length>0)rows[rows.length]=rowCells;}var curRow=new Array();var lastTR=null;for(var y=0;y<grid.length;y++){for(var x=0;x<grid[y].length;x++){grid[y][x]._selected=false;for(var i=0;i<cells.length;i++){if(grid[y][x]==cells[i]){if(x1==-1){x1=x;y1=y;}x2=x;y2=y;grid[y][x]._selected=true;}}}}for(var y=y1;y<=y2;y++){for(var x=x1;x<=x2;x++){if(!grid[y][x]._selected){alert("Invalid selection for merge.");return true;}}}}var rowSpan=1,colSpan=1;var lastRowSpan=-1;for(var y=0;y<rows.length;y++){var rowColSpan=0;for(var x=0;x<rows[y].length;x++){var sd=getColRowSpan(rows[y][x]);rowColSpan+=sd['colspan'];if(lastRowSpan!=-1&&sd['rowspan']!=lastRowSpan){alert("Invalid selection for merge.");return true;}lastRowSpan=sd['rowspan'];}if(rowColSpan>colSpan)colSpan=rowColSpan;lastRowSpan=-1;}var lastColSpan=-1;for(var x=0;x<rows[0].length;x++){var colRowSpan=0;for(var y=0;y<rows.length;y++){var sd=getColRowSpan(rows[y][x]);colRowSpan+=sd['rowspan'];if(lastColSpan!=-1&&sd['colspan']!=lastColSpan){alert("Invalid selection for merge.");return true;}lastColSpan=sd['colspan'];}if(colRowSpan>rowSpan)rowSpan=colRowSpan;lastColSpan=-1;}tdElm=rows[0][0];tdElm.rowSpan=rowSpan;tdElm.colSpan=colSpan;for(var y=0;y<rows.length;y++){for(var x=0;x<rows[y].length;x++){var html=rows[y][x].innerHTML;var chk=tinyMCE.regexpReplace(html,"[ \t\r\n]","");if(chk!="<br/>"&&chk!="<br>"&&chk!="&nbsp;"&&(x+y>0))tdElm.innerHTML+=html;if(rows[y][x]!=tdElm&&!rows[y][x]._deleted){var cpos=getCellPos(grid,rows[y][x]);var tr=rows[y][x].parentNode;tr.removeChild(rows[y][x]);rows[y][x]._deleted=true;if(!tr.hasChildNodes()){tr.parentNode.removeChild(tr);var lastCell=null;for(var x=0;cellElm=getCell(grid,cpos.rowindex,x);x++){if(cellElm!=lastCell&&cellElm.rowSpan>1)cellElm.rowSpan--;lastCell=cellElm;}if(tdElm.rowSpan>1)tdElm.rowSpan--;}}}}break;}tableElm=tinyMCE.getParentElement(inst.getFocusElement(),"table");tinyMCE.handleVisualAid(tableElm,true,tinyMCE.settings['visual'],tinyMCE.selectedInstance);tinyMCE.triggerNodeChange();inst.repaint();}return true;}return false;}};tinyMCE.addPlugin("table",TinyMCE_TablePlugin);
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin.js/buggy/mambots/editors/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js
function deleteMovie(xy)
function deleteMovie()
function deleteMovie(xy){ if (confirmAction('Do you really want to delete this movie?')) { document.location = "/cgi-bin/deleteMovie?ref="+xy; setTimeout("reload()", 3000); }}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/a1f52767a4b0d85e42c9cafb1409d6438278830c/index.js/clean/tuxbox/enigma/data/htdocs/index.js
document.location = "/cgi-bin/deleteMovie?ref="+xy;
var selChannel = document.channelselector.channel.selectedIndex; var channel = document.channelselector.channel.options[selChannel].value; document.location = "/cgi-bin/deleteMovie?ref="+channel;
function deleteMovie(xy){ if (confirmAction('Do you really want to delete this movie?')) { document.location = "/cgi-bin/deleteMovie?ref="+xy; setTimeout("reload()", 3000); }}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/a1f52767a4b0d85e42c9cafb1409d6438278830c/index.js/clean/tuxbox/enigma/data/htdocs/index.js
currentChannel = selChannel;
function deleteMovie(xy){ if (confirmAction('Do you really want to delete this movie?')) { if (window.screen.width < 800) { document.location = "cgi-bin/deleteMovie?ref="+xy; } else { var selChannel = document.channelselector.channel.selectedIndex; var channel = ""; if (selChannel >= 0) { channel = document.channelselector.channel.options[selChannel].value; document.location = "cgi-bin/deleteMovie?ref="+channel; setTimeout("reload()", 3000); } else alert("Please select a movie first!"); } }}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/3be406a5d64f3f80b4175dfe8914360e64ffb26a/index.js/buggy/tuxbox/enigma/data/htdocs/index.js
Element.remove(row);
if (null != row) { Element.remove(row); }
this.deleteSession = function(uri, context) { // delete the session debug.print("deleteSession: " + uri); if (confirm("Are you sure you want to delete this session?")) { // call session-delete var req = new Ajax.Request(deleteUrl, { method: 'post', parameters: 'URI=' + uri, asynchronous: false, onFailure: reportError }); // delete the item from the DOM // context will be the button var row = context.parentNode.parentNode; Element.remove(row); } }
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/69dedb9c0ffc0c9e18f6293f86204bb722b72414/session.js/buggy/session.js
function deleteTimerEvent()
function deleteTimerEvent(xy)
function deleteTimerEvent(){ win=window.open("/deleteTimerEvent", "switchStatus", "width=1, height=1, left=0, top=0"); win.focus(); parent.setTimeout("reload()", 500);}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/a4216a7cfcd97109f70472c3f7220360a60de85b/timer.js/buggy/tuxbox/enigma/data/htdocs/timer.js
win=window.open("/deleteTimerEvent", "switchStatus", "width=1, height=1, left=0, top=0");
win=window.open("/deleteTimerEvent?"+xy, "switchStatus", "width=1, height=1, left=0, top=0");
function deleteTimerEvent(){ win=window.open("/deleteTimerEvent", "switchStatus", "width=1, height=1, left=0, top=0"); win.focus(); parent.setTimeout("reload()", 500);}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/a4216a7cfcd97109f70472c3f7220360a60de85b/timer.js/buggy/tuxbox/enigma/data/htdocs/timer.js
document.location = "/deleteTimerEvent?"+xy; setTimeout("reload()", 500);
NewWindow('/deleteTimerEvent?'+xy, 'deleteTimer', '300', '150', 'no', '5000'); setTimeout("reload()", 2000);
function deleteTimerEvent(xy){ document.location = "/deleteTimerEvent?"+xy; setTimeout("reload()", 500);}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/cba8e38e78b1f5214fbfc1b26d6d6b390f6d6c7e/timer.js/buggy/tuxbox/enigma/data/htdocs/timer.js
NewWindow('/deleteTimerEvent?'+xy, 'deleteTimer', '300', '150', 'no', '5000'); setTimeout("reload()", 2000);
NewWindow('/deleteTimerEvent?'+xy, 'deleteTimer', '300', '150', 'no');
function deleteTimerEvent(xy){ NewWindow('/deleteTimerEvent?'+xy, 'deleteTimer', '300', '150', 'no', '5000'); setTimeout("reload()", 2000);}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/9949e8081e6952aa85cdb0d23691adf4aefd6f60/timer.js/clean/tuxbox/enigma/data/htdocs/timer.js
props.push(prop + " -> " + object[prop]);
try { props.push(prop + " -> " + object[prop]); } catch (e) { props.push(prop + " -> [htmlutils: ack! couldn't read this property! (Permission Denied?)]"); }
function describe(object, delimiter) { var props = new Array(); for (var prop in object) { props.push(prop + " -> " + object[prop]); } return props.join(delimiter || '\n');}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/476ccd842ee26de6c101e6581d2a0f5bb251d2f6/htmlutils.js/clean/code/javascript/core/scripts/htmlutils.js
function describe(object) {
function describe(object, delimiter) {
function describe(object) { var props = new Array(); for (var prop in object) { props.push(prop + " -> " + object[prop]); } return props.join('\n');}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8204ef0e684c368119f602100144e47b160a21e4/htmlutils.js/clean/code/javascript/htmlutils.js
return props.join('\n');
return props.join(delimiter || '\n');
function describe(object) { var props = new Array(); for (var prop in object) { props.push(prop + " -> " + object[prop]); } return props.join('\n');}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8204ef0e684c368119f602100144e47b160a21e4/htmlutils.js/clean/code/javascript/htmlutils.js
function describe(object) {
function describe(object, delimiter) {
function describe(object) { var props = new Array(); for (var prop in object) { props.push(prop + " -> " + object[prop]); } return props.join('\n');}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/39b01a6737325d783eaf2dbc5a138c33adb4c379/htmlutils.js/buggy/code/javascript/htmlutils.js
return props.join('\n');
return props.join(delimiter || '\n');
function describe(object) { var props = new Array(); for (var prop in object) { props.push(prop + " -> " + object[prop]); } return props.join('\n');}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/39b01a6737325d783eaf2dbc5a138c33adb4c379/htmlutils.js/buggy/code/javascript/htmlutils.js
document.getElementById("description").innerHTML = '<p>' + msg + '</p><p>On success, you will see a series of "<span class="pass">PASS</span>" messages, followed by "<span class="pass">TEST COMPLETE</span>".</p>';
var span = document.createElement("span"); span.innerHTML = '<p>' + msg + '</p><p>On success, you will see a series of "<span class="pass">PASS</span>" messages, followed by "<span class="pass">TEST COMPLETE</span>".</p>'; var description = document.getElementById("description"); if (description.firstChild) description.replaceChild(span, description.firstChild); else description.appendChild(span);
function description(msg){ document.getElementById("description").innerHTML = '<p>' + msg + '</p><p>On success, you will see a series of "<span class="pass">PASS</span>" messages, followed by "<span class="pass">TEST COMPLETE</span>".</p>';}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/b26e2ddf06cf750b6792e497588ade683773aa67/js-test-pre.js/buggy/third_party/WebKit/LayoutTests/fast/js/resources/js-test-pre.js
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
OpenLayers.Layer.EventPane.prototype.destroy.apply(this, arguments);
destroy: function() { this.gmap = null; OpenLayers.Layer.prototype.destroy.apply(this, arguments); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/8f33a633aa6d5eb5b7fd38f5342b2d65e1bafc3f/Google.js/clean/lib/OpenLayers/Layer/Google.js
if ((this.img != null) && (this.img.parentNode == this.layer.div)) { this.layer.div.removeChild(this.img);
if ((this.imgDiv != null) && (this.imgDiv.parentNode == this.layer.div)) { this.layer.div.removeChild(this.imgDiv);
destroy: function() { if ((this.img != null) && (this.img.parentNode == this.layer.div)) { this.layer.div.removeChild(this.img); } this.img = null; OpenLayers.Tile.prototype.destroy.apply(this, arguments); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/836b47c192b0349467fb6eb380c1c7f3bc6ec87f/Image.js/buggy/lib/OpenLayers/Tile/Image.js
this.img = null;
this.imgDiv = null;
destroy: function() { if ((this.img != null) && (this.img.parentNode == this.layer.div)) { this.layer.div.removeChild(this.img); } this.img = null; OpenLayers.Tile.prototype.destroy.apply(this, arguments); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/836b47c192b0349467fb6eb380c1c7f3bc6ec87f/Image.js/buggy/lib/OpenLayers/Tile/Image.js
if (this.popup != null) { this.layer.map.removePopup(this.popup);
if ((this.layer != null) && (this.layer.map != null)) { if (this.popup != null) { this.layer.map.removePopup(this.popup); }
destroy: function() { //remove the popup from the map if (this.popup != null) { this.layer.map.removePopup(this.popup); } this.events = null; this.layer = null; this.id = null; this.lonlat = null; this.data = null; if (this.marker != null) { this.marker.destroy(); this.marker = null; } if (this.popup != null) { this.popup.destroy(); this.popup = null; } },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/fc366b73fe5923273e8fced6079c546fd780fc54/Feature.js/clean/lib/OpenLayers/Feature.js
this.marker = null,
this.marker = null;
destroy: function() { this.events = null; this.layer = null; this.id = null; this.lonlat = null; this.data = null; if (this.marker != null) { this.marker.destroy(); this.marker = null, } if (this.popup != null) { this.popup.destroy(); this.popup = null; } }, /** * @returns A Marker Object created from the 'lonlat' and 'icon' properties * set in this.data. If no 'lonlat' is set, returns null. If no * 'icon' is set, OpenLayers.Marker() will load the default image * @type OpenLayers.Marker */ createMarker: function() { var marker = null; if (this.lonlat != null) { this.marker = new OpenLayers.Marker(this.lonlat, this.data.icon); } return this.marker; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/280abf356cc63aab07551feefe349b35f7bfa2aa/Feature.js/buggy/lib/OpenLayers/Feature.js
/** * @returns A Marker Object created from the 'lonlat' and 'icon' properties * set in this.data. If no 'lonlat' is set, returns null. If no * 'icon' is set, OpenLayers.Marker() will load the default image * @type OpenLayers.Marker */ createMarker: function() { var marker = null; if (this.lonlat != null) { this.marker = new OpenLayers.Marker(this.lonlat, this.data.icon); } return this.marker; },
destroy: function() { this.events = null; this.layer = null; this.id = null; this.lonlat = null; this.data = null; if (this.marker != null) { this.marker.destroy(); this.marker = null, } if (this.popup != null) { this.popup.destroy(); this.popup = null; } }, /** * @returns A Marker Object created from the 'lonlat' and 'icon' properties * set in this.data. If no 'lonlat' is set, returns null. If no * 'icon' is set, OpenLayers.Marker() will load the default image * @type OpenLayers.Marker */ createMarker: function() { var marker = null; if (this.lonlat != null) { this.marker = new OpenLayers.Marker(this.lonlat, this.data.icon); } return this.marker; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/280abf356cc63aab07551feefe349b35f7bfa2aa/Feature.js/buggy/lib/OpenLayers/Feature.js
Event.stopObserving(document, "mouseup", this.eventMouseUp); Event.stopObserving(document, "mousemove", this.eventMouseMove); Event.stopObserving(document, "keypress", this.eventKeypress);
this.unregisterEvents();
destroy: function() { Event.stopObserving(this.handle, "mousedown", this.eventMouseDown); Event.stopObserving(document, "mouseup", this.eventMouseUp); Event.stopObserving(document, "mousemove", this.eventMouseMove); Event.stopObserving(document, "keypress", this.eventKeypress); },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/dragdrop.js/clean/public/javascripts/dragdrop.js
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
OpenLayers.Layer.EventPane.prototype.destroy.apply(this, arguments);
destroy: function() { this.gmap = null; OpenLayers.Layer.prototype.destroy.apply(this, arguments); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/8f33a633aa6d5eb5b7fd38f5342b2d65e1bafc3f/Google.js/clean/lib/OpenLayers/Layer/Google.js
this.layer.div.removeChild(this.img);
if (this.img.parentNode == this.layer.div) { this.layer.div.removeChild(this.img); }
destroy: function() { this.layer.div.removeChild(this.img); this.img = null; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/a4d0badaeb2a754163d24412a77855f019aa5bb1/Image.js/buggy/lib/OpenLayers/Tile/Image.js
this.layer.div.removeChild(this.img);
if (this.img.parentNode == this.layer.div) { this.layer.div.removeChild(this.img); }
destroy: function() { this.layer.div.removeChild(this.img); this.img = null; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/a4d0badaeb2a754163d24412a77855f019aa5bb1/Image.js/clean/lib/OpenLayers/Tile/Image.js
for(var i=0; i< this.layers.length; i++) { this.layers[i].destroy(); } this.layers = null; for(var i=0; i< this.controls.length; i++) { this.controls[i].destroy(); } this.controls = null;
if (this.layers != null) { for(var i=0; i< this.layers.length; i++) { this.layers[i].destroy(); } this.layers = null; } if (this.controls != null) { for(var i=0; i< this.controls.length; i++) { this.controls[i].destroy(); } this.controls = null; }
destroy:function() { for(var i=0; i< this.layers.length; i++) { this.layers[i].destroy(); } this.layers = null; for(var i=0; i< this.controls.length; i++) { this.controls[i].destroy(); } this.controls = null; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/cfb1b472a7f2f66b997a8ba55d05560047711099/Map.js/clean/lib/OpenLayers/Map.js