rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 13 136k | meta stringlengths 132 347 |
|---|---|---|---|
this.moveToNewExtent(true); this.events.triggerEvent("zoomend", {oldZoom: oldZoom, newZoom: this.zoom}); | this.moveToNewExtent(oldZoom); | zoomTo: function(zoom) { if (zoom >= 0 && zoom <= this.getZoomLevels()) { var oldZoom = this.zoom; this.zoom = zoom; this.moveToNewExtent(true); this.events.triggerEvent("zoomend", {oldZoom: oldZoom, newZoom: this.zoom}); } }, | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/ed9b57b6df737ed58b33843285251114e8507962/Map.js/buggy/lib/OpenLayers/Map.js |
var oldZoom = this.zoom; | zoomToFullExtent: function() { var fullExtent = this.getFullExtent(); var oldZoom = this.zoom; this.setCenter( new OpenLayers.LonLat((fullExtent.left+fullExtent.right)/2, (fullExtent.bottom+fullExtent.top)/2), 0 ... | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/Map.js/clean/lib/OpenLayers/Map.js | |
0 ); | this.getZoomForExtent(fullExtent) ); | zoomToFullExtent: function() { var fullExtent = this.getFullExtent(); var oldZoom = this.zoom; this.setCenter( new OpenLayers.LonLat((fullExtent.left+fullExtent.right)/2, (fullExtent.bottom+fullExtent.top)/2), 0 ... | 2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/c92cd6d88a59f79879c73965c26269e13afa25e3/Map.js/clean/lib/OpenLayers/Map.js |
var oldZoom = this.zoom; | zoomToFullExtent: function() { var fullExtent = this.getFullExtent(); var oldZoom = this.zoom; this.setCenter( new OpenLayers.LonLat((fullExtent.left+fullExtent.right)/2, (fullExtent.bottom+fullExtent.top)/2), 0 ... | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/Map.js/clean/lib/OpenLayers/Map.js | |
0 ); | this.getZoomForExtent(fullExtent) ); | zoomToFullExtent: function() { var fullExtent = this.getFullExtent(); var oldZoom = this.zoom; this.setCenter( new OpenLayers.LonLat((fullExtent.left+fullExtent.right)/2, (fullExtent.bottom+fullExtent.top)/2), 0 ... | 2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/c92cd6d88a59f79879c73965c26269e13afa25e3/Map.js/clean/lib/OpenLayers/Map.js |
var items = []; | function $$(){ if (!arguments) return false; if (arguments.length == 1){ if (!arguments[0]) return false; if (arguments[0]._elements_extended_) return arguments[0]; } var items = []; var elements = []; $each(arguments, function(selector){ if ($type(selector) == 'string') items.extend(document.getElementsBySelector(s... | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/buggy/Native/Element.js | |
if ($type(selector) == 'string') items.extend(document.getElementsBySelector(selector)); else if ($type(selector) == 'element') items.push($(selector)); else if (selector.length){ $each(selector, function(sel){ items.push(sel); }); | switch ($type(selector)){ case 'element': elements.push($(selector)); break; case 'string': selector = document.getElementsBySelector(selector); default: if (selector.length){ $each(selector, function(el){ if ($(el)) elements.push(el); }); } | function $$(){ if (!arguments) return false; if (arguments.length == 1){ if (!arguments[0]) return false; if (arguments[0]._elements_extended_) return arguments[0]; } var items = []; var elements = []; $each(arguments, function(selector){ if ($type(selector) == 'string') items.extend(document.getElementsBySelector(s... | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/buggy/Native/Element.js |
}); items.each(function(item){ if ($(item)) elements.push(item); | function $$(){ if (!arguments) return false; if (arguments.length == 1){ if (!arguments[0]) return false; if (arguments[0]._elements_extended_) return arguments[0]; } var items = []; var elements = []; $each(arguments, function(selector){ if ($type(selector) == 'string') items.extend(document.getElementsBySelector(s... | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/buggy/Native/Element.js | |
el._element_extended_ = true; Garbage.collect(el); el.extend = Object.extend; if (!(el instanceof HTMLElement)) el.extend(Element.prototype); | if (!el.extend){ el._element_extended_ = true; Garbage.collect(el); el.extend = Object.extend; if (!(el instanceof HTMLElement)) el.extend(Element.prototype); } | function $(el){ if (!el) return false; if (el._element_extended_) return el; if ($type(el) == 'string') el = document.getElementById(el); if ([window, document].test(el)) return el; if ($type(el) != 'element') return false; if (['object', 'embed'].test(el.tagName.toLowerCase())) return el; el._element_extended_ = true;... | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/e7dd910693884a63178478122a8cdcbd826b62c2/Element.js/clean/Native/Element.js |
this.get(0).innerHTML : this.set( "innerHTML", h ); | this.get(0).innerHTML : this.set( "innerHTML", h ); | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/130b8a1c030ae7888934fcd8dee6695eac271fcb/jquery.js/clean/jquery/jquery.js |
this.get(0).value : this.set( "value", h ); | this.get(0).value : this.set( "value", h ); | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/130b8a1c030ae7888934fcd8dee6695eac271fcb/jquery.js/clean/jquery/jquery.js |
var clone = this.size() > 1; | var clone = this.size() > 1; | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/130b8a1c030ae7888934fcd8dee6695eac271fcb/jquery.js/clean/jquery/jquery.js |
var clone = this.size() > 1; | var clone = this.size() > 1; | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/130b8a1c030ae7888934fcd8dee6695eac271fcb/jquery.js/clean/jquery/jquery.js |
var clone = this.size() > 1; | var clone = this.size() > 1; | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/130b8a1c030ae7888934fcd8dee6695eac271fcb/jquery.js/clean/jquery/jquery.js |
var clone = this.size() > 1; | var clone = this.size() > 1; | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/130b8a1c030ae7888934fcd8dee6695eac271fcb/jquery.js/clean/jquery/jquery.js |
parent: function(a) { this.cur = $.map(this.cur,function(d){ return d.parentNode; }); if ( a ) this.cur = $.filter(a,this.cur).r; return this; }, parents: function(a) { this.cur = $.map(this.cur,$.parents); if ( a ) this.cur = $.filter(a,this.cur).r; return this; }, siblings: function(a) { this.cur = $.map(this.cur,... | parent: function(a) { this.cur = $.map(this.cur,function(d){ return d.parentNode; }); if ( a ) this.cur = $.filter(a,this.cur).r; return this; }, parents: function(a) { this.cur = $.map(this.cur,$.parents); if ( a ) this.cur = $.filter(a,this.cur).r; return this; }, siblings: function(a) { this.cur = $.map(this.cur,... | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/130b8a1c030ae7888934fcd8dee6695eac271fcb/jquery.js/clean/jquery/jquery.js |
if (el._element_extended_) return el; if ([window, document].test(el)) return el; | if (el._element_extended_ || [window, document].test(el)) return el; | function $(el){ if (!el) return false; if (el._element_extended_) return el; if ([window, document].test(el)) return el; if ($type(el) == 'string') el = document.getElementById(el); if ($type(el) != 'element') return false; if (['object', 'embed'].test(el.tagName.toLowerCase())) return el; if (!el.extend){ el._element... | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/buggy/Native/Element.js |
if (['object', 'embed'].test(el.tagName.toLowerCase())) return el; if (!el.extend){ | if (!['object', 'embed'].test(el.tagName.toLowerCase()) && !el.extend){ | function $(el){ if (!el) return false; if (el._element_extended_) return el; if ([window, document].test(el)) return el; if ($type(el) == 'string') el = document.getElementById(el); if ($type(el) != 'element') return false; if (['object', 'embed'].test(el.tagName.toLowerCase())) return el; if (!el.extend){ el._element... | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/buggy/Native/Element.js |
if ( c == null ) this.className = ''; else | this.className = c == null ? '' : | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/facb2324f9b5db4f4e20f529cb12952daad20aff/jquery.js/clean/jquery/jquery.js |
for (i = 0; i < arguments.length; i++) { | for (var i = 0; i < arguments.length; i++) { | function $() { var elements = new Array(); for (i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements;} | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/e1ce18020e1c23c148060ec2180dc0ed794be06e/prototype.js/clean/railties/html/javascripts/prototype.js |
{ var elements = new Array(); | { var elements = new Array(); | function $(){ var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') { if (document.getElementById) { element = document.getElementById(element); } else ... | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/util.js/clean/java/uk/ltd/getahead/dwr/util.js |
for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') | for (var i = 0; i < arguments.length; i++) | function $(){ var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') { if (document.getElementById) { element = document.getElementById(element); } else ... | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/util.js/clean/java/uk/ltd/getahead/dwr/util.js |
if (document.getElementById) { element = document.getElementById(element); } else if (document.all) | var element = arguments[i]; if (typeof element == 'string') | function $(){ var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') { if (document.getElementById) { element = document.getElementById(element); } else ... | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/util.js/clean/java/uk/ltd/getahead/dwr/util.js |
if (arguments.length == 1) { return element; } elements.push(element); | return elements; | function $(){ var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') { if (document.getElementById) { element = document.getElementById(element); } else ... | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/util.js/clean/java/uk/ltd/getahead/dwr/util.js |
return elements; } | function $(){ var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') { if (document.getElementById) { element = document.getElementById(element); } else ... | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/8402a249ca378792cd10adfab1b769c52ed0997b/util.js/clean/java/uk/ltd/getahead/dwr/util.js | |
function $() | $ = function() | function $() { var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') { element = document.all[element]; } if (arguments.length == 1) ... | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/fc573f7d876b17a4e8cca8069af5e9bd6727da1a/util.js/buggy/java/uk/ltd/getahead/dwr/util.js |
if (arguments.length == 1) | if (arguments.length == 1) | function $() { var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements;} | 2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/9867ca01ad65827d23c0bf6cc14d8a64137e927d/prototype.js/buggy/tracks/public/javascripts/prototype.js |
if (!['object', 'embed'].test(el.tagName.toLowerCase()) && !el.extend){ el._element_extended_ = true; Garbage.collect(el); el.extend = Object.extend; if (!(el instanceof HTMLElement)) el.extend(Element.prototype); } | if (['object', 'embed'].test(el.tagName.toLowerCase()) || el.extend) return el; el._element_extended_ = true; Garbage.collect(el); el.extend = Object.extend; if (!(el instanceof HTMLElement)) el.extend(Element.prototype); | function $(el){ if (!el) return false; if (el._element_extended_ || [window, document].test(el)) return el; if ($type(el) == 'string') el = document.getElementById(el); if ($type(el) != 'element') return false; if (!['object', 'embed'].test(el.tagName.toLowerCase()) && !el.extend){ el._element_extended_ = true; Garba... | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/40abbc9297ec4379ee70e76011e4bfc1dc45a5a6/Element.js/buggy/Native/Element.js |
return i === null ? this.cur : this.cur[i]; | return typeof i == 'undefined' ? this.cur : this.cur[i]; | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/2a6b0ee7c846d5bdd535dcc9a399d528f65460ac/jquery.js/clean/jquery/jquery.js |
for (i = 0; i < arguments.length; i++) { | for (var i = 0; i < arguments.length; i++) { | function $() { var elements = new Array(); for (i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements;} | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/e1ce18020e1c23c148060ec2180dc0ed794be06e/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
for ( var i in a ) | for ( var i = 0; i < a.length; i++ ) | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c206df28db1d8e6ff7d276ea3d92cde35e0cc640/jquery.js/clean/jquery/jquery.js |
for ( var i in a ) | for ( var i = 0; i < a.length; i++ ) | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c206df28db1d8e6ff7d276ea3d92cde35e0cc640/jquery.js/clean/jquery/jquery.js |
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
this.className = | this.className = | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js |
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/d584a884b6377553d6ba544c10484dc2a866caee/jquery.js/buggy/jquery/jquery.js | ||
if (arguments.length == 1) | if (arguments.length == 1) | function $() { var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements;} | 708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/clean/public/javascripts/prototype.js |
this.cur = $.map(this.cur,function(d){ return d.parentNode; }); if ( a ) this.cur = $.filter(a,this.cur).r; return this; | this.cur = $.map(this.cur,function(d){ return d.parentNode; }); if ( a ) this.cur = $.filter(a,this.cur).r; return this; | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/jquery.js/buggy/jquery/jquery.js |
this.cur = $.map(this.cur,$.parents); if ( a ) this.cur = $.filter(a,this.cur).r; return this; | this.cur = $.map(this.cur,$.parents); if ( a ) this.cur = $.filter(a,this.cur).r; return this; | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/jquery.js/buggy/jquery/jquery.js |
this.cur = $.map(this.cur,$.sibling); if ( a ) this.cur = $.filter(a,this.cur).r; return this; }, parents: function(a) { | this.cur = $.map(this.cur,$.sibling); if ( a ) this.cur = $.filter(a,this.cur).r; | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.tes... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/jquery.js/buggy/jquery/jquery.js |
function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.test($a) ) { $c = $c && $c.documentElement || document; if ( $c.getElementsByTagName($a).length... | var $ = function(a,c) { return new jQuery(a,c); | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.test... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js |
for ( var i in $.fn ) { if ( self[i] !== null ) self["_"+i] = self[i]; self[i] = $.fn[i]; } if ( typeof Prototype != "undefined" && $a.constructor != String ) { if ( $c ) $a = self.get(); for ( var k in self ) {(function(j){ try { if ( !$a[j] ) $a[j] = function() { return $.apply(self,self[j],arguments); }; } catch(... | function $(a,c) { var $a = a || $.context || document; var $c = c && c.$jquery && c.get(0) || c; // Since we're using Prototype's $ function, // be nice and have backwards compatability if ( typeof Prototype != "undefined" ) { if ( $a.constructor == String ) { var re = new RegExp( "[^a-zA-Z0-9_-]" ); if ( !re.test... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js | |
return new Range(start, end, exclusive); | return new ObjectRange(start, end, exclusive); | var $R = function(start, end, exclusive) { return new Range(start, end, exclusive);} | 5150 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5150/44d85be227cc8496144d82df38b82dfcc1224861/prototype.js/clean/intermine/webapp/main/resources/main/js/prototype.js |
this.drops = this.drops.reject(function(e) { return e==element }); | this.drops = this.drops.reject(function(d) { return d.element==element }); | this.drops = this.drops.reject(function(e) { return e==element }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
blocking = true; $.get('index.html', function(content) { var div = $(document.createElement('div')).html(content) .find('[@id=main]').html(); $('#main').html(div); blocking = false; process(); }); | var runTime = new Date() - startTime; $('body').append('<br/>Tests completed in ' + runTime + ' milliseconds.'); | synchronize(function() { blocking = true; $.get('index.html', function(content) { var div = $(document.createElement('div')).html(content) // search for main div .find('[@id=main]').html(); $('#main').html(div); blocking = false; process(); }); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/b5220adbbcbb6216af176fa38c626aca53ec8d0f/test.js/clean/build/test/js/test.js |
return a && b && a.constructor == Function && b.constructor == Function ? this.click(function(e){ | return typeof a[0] == "function" && typeof a[1] == "function" ? this.click(function(e) { | return a && b && a.constructor == Function && b.constructor == Function ? this.click(function(e){ // Figure out which function to execute this.last = this.last == a ? b : a; // Make sure that clicks stop e.preventDefault(); // and execute the function return this.last.apply( this, [e] ) || false; }... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/def8c734edd6ab2b8188070520ef2019502ffd98/event.js/buggy/src/event/event.js |
this.last = this.last == a ? b : a; | this.lastToggle = this.lastToggle == 0 ? 1 : 0; | return a && b && a.constructor == Function && b.constructor == Function ? this.click(function(e){ // Figure out which function to execute this.last = this.last == a ? b : a; // Make sure that clicks stop e.preventDefault(); // and execute the function return this.last.apply( this, [e] ) || false; }... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/def8c734edd6ab2b8188070520ef2019502ffd98/event.js/buggy/src/event/event.js |
return this.last.apply( this, [e] ) || false; | return a[this.lastToggle].apply( this, [e] ) || false; | return a && b && a.constructor == Function && b.constructor == Function ? this.click(function(e){ // Figure out which function to execute this.last = this.last == a ? b : a; // Make sure that clicks stop e.preventDefault(); // and execute the function return this.last.apply( this, [e] ) || false; }... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/def8c734edd6ab2b8188070520ef2019502ffd98/event.js/buggy/src/event/event.js |
register_onload(function() { if( $('commentform') && $('commentform').elements[1].value != '' ) { Element.show('guest_url');} }) | register_onload(function() { if( $('commentform') && $('commentform').elements[1].value != '' || $('commentform').elements[2].value != '' ) { Element.show('guest_url'); Element.show('guest_email');} }) | register_onload(function() { if( $('commentform') && $('commentform').elements[1].value != '' ) { Element.show('guest_url');} }) | 708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/a177a4b5687599ecd0d63f0e57f998a1eef06307/typo.js/clean/public/javascripts/typo.js |
function (str, p1, part, s) { return (parseInt(part) + 1) + "."; | function (str, dot, dotNum, noDot, noDotNum, pos, s) { return (parseInt(str) + 1) + (dot ? "." : ""); | function (str, p1, part, s) { return (parseInt(part) + 1) + "."; }); | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/41a03c0ad0a47f6b15dfb15dc7be88f0e04414ab/contentAreaUtils.js/buggy/toolkit/content/contentAreaUtils.js |
"windowing.js" | "window-manager.js" | (function() { var javascriptFiles = [ "platform.js", "debug.js", "xmlhttp.js", "json.js", "dom.js", "graphics.js", "ajax.js", "history.js", "windowing.js" ]; var cssFiles = [ ];... | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/6b9c9a1223dcd49e046ac37241609e6248667b71/ajax-api.js/buggy/src/webapp/api/ajax-api.js |
return a && b ? this.click(function(e){ // Figure out which function to execute this.last = this.last == a ? b : a; // Make sure that clicks don't pass through e.preventDefault(); // and execute the function return this.last.apply( this, [e] ) || false; }) : | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/a208222f3713a7f28499040d924d8c89b41c4350/event.js/clean/event/event.js | ||
if ( ret ) ret( $.httpData(r,type) ); }); | if ( ret ) ret( $.httpData(r,type) ); }); | $.xml( "GET", url, null, function(r) { if ( ret ) ret( $.httpData(r,type) ); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/ajax.js/buggy/ajax/ajax.js |
var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ](); } }); | var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ](); } }); | return this.queue(function(){ var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ](); } }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/fx.js/clean/fx/fx.js |
alert("Caught exception: " + msg2 + "\n\nDetails: " + e2.description); | if (!SimileAjax.Debug.silent) { alert("Caught exception: " + msg2 + "\n\nDetails: " + e2.description); } | function(msg2, e2) { alert("Caught exception: " + msg2 + "\n\nDetails: " + e2.description); } : | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/45b1ecd580363267e81dc76f3b50f9a25374c320/debug.js/buggy/src/webapp/api/scripts/debug.js |
if ($type(selector) == 'string') items.extend(document.getElementsBySelector(selector)); else if ($type(selector) == 'element') items.push($(selector)); else if (selector.length){ $each(selector, function(sel){ items.push(sel); }); | switch ($type(selector)){ case 'element': elements.push($(selector)); break; case 'string': selector = document.getElementsBySelector(selector); default: if (selector.length){ $each(selector, function(el){ if ($(el)) elements.push(el); }); } | $each(arguments, function(selector){ if ($type(selector) == 'string') items.extend(document.getElementsBySelector(selector)); else if ($type(selector) == 'element') items.push($(selector)); else if (selector.length){ $each(selector, function(sel){ items.push(sel); }); } }); | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/af66a6919b8d36f1a1d048c31276da23a227b278/Element.js/buggy/Native/Element.js |
expect(1); | expect(2); | test("load(String, Object, Function) - simple: inject text into DOM", function() { expect(1); stop(); $('#first').load("data/name.php", function() { ok( $('#first').text() == 'ERROR', 'Check if content was injected into the DOM' ); start(); });}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js |
ok( $('#first').text() == 'ERROR', 'Check if content was injected into the DOM' ); | ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); | test("load(String, Object, Function) - simple: inject text into DOM", function() { expect(1); stop(); $('#first').load("data/name.php", function() { ok( $('#first').text() == 'ERROR', 'Check if content was injected into the DOM' ); start(); });}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js |
$.xml(mth, url, $.param(this.vars), function(r) { | $.ajax(mth, url, $.param(this.vars), function(r) { | $.xml(mth, url, $.param(this.vars), function(r) { eval(r.responseText); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/form.js/buggy/form/form.js |
if (value && name) obj[encodeURIComponent(name)] = encodeURIComponent(value); | if (value && name) obj[name] = value; | $each(this.getElementsByTagName('*'), function(el){ var name = $(el).name; var value = el.getValue(); if (value && name) obj[encodeURIComponent(name)] = encodeURIComponent(value); }); | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/ee45bcbdda9f41e1d047aeccacc4bf8768c2c67b/Ajax.js/clean/Remote/Ajax.js |
js = js.replace(/</g, "<").replace(/>/g, ">"); | js = js.replace(/</g, "<").replace(/>/g, ">").replace(/&/g, "&"); | $.get(files[num],function(js){ js = js.replace(/</g, "<").replace(/>/g, ">"); try { eval(js); } catch(e) { Test.push( [ false, "Died on test #" + Test.length + ": " + e ] ); } var good = 0, bad = 0; var ol = document.createElement("ol"); var li = "", state = "pass"; for ( var i = 0; i < Test.length; ... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/906478800db84631ddbd6b132450f65a2176bd2c/test.js/clean/build/test/js/test.js |
e[ prop[p] ](); | e[ prop[p] ]( prop ); | return this.queue(function(){ var i = 0; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ](); } }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/aa5c4d8828bd8956218ccca47ee7a029fe26008e/fx.js/clean/fx/fx.js |
if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; | if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeig... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
} new Effect.Appear(update,{duration:0.3}); }; | } new Effect.Appear(update,{duration:0.15}); }; | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeig... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js |
function(row) { return row; }, | function(row) { return row; }, | function(row) { return row; }, | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/a6659fd28de5e0d001fe9e46da6cdb9dd78104c0/testsuite.js/buggy/web/testsuite.js |
return handler.call(obj, elmt2, evt, target); | return obj[handlerName].call(obj, elmt2, evt, target); | SimileAjax.DOM.registerEvent(elmt, eventName, function(elmt2, evt, target) { return handler.call(obj, elmt2, evt, target); }); | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/6b9c9a1223dcd49e046ac37241609e6248667b71/dom.js/clean/src/webapp/api/scripts/dom.js |
$.apply( self, callback, [res.responseText] ); | callback.apply( self, [res.responseText] ); | $.ajax( type, url, params,function(res){ // Inject the HTML into all the matched elements self.html(res.responseText).each(function(){ // If a callback function was provided if ( callback && callback.constructor == Function ) // Execute it within the context of the element $.apply( self, callback, [res.... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/ajax.js/clean/ajax/ajax.js |
$.xml( "GET", url, null, function(r) { if ( ret ) { ret( $.httpData(r,type) ); } | $.ajax( type, url, params,function(res){ self.html(res.responseText).each(function(){ if ( callback && callback.constructor == Function ) $.apply( self, callback, [res.responseText] ); }); $("script", self).each(function(){ eval( this.text || this.textContent || this.innerHTML || ""); }); | $.xml( "GET", url, null, function(r) { if ( ret ) { ret( $.httpData(r,type) ); } }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/70cab836b0d87ec1a94658411c398658780f5810/ajax.js/buggy/ajax/ajax.js |
var handler = function() {return function(){view.onCDReal(event.target)}}; | view.pending = setTimeout(function(){view.showDetail(_e);}, 500); | var handler = function() {return function(){view.onCDReal(event.target)}}; | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d777f3b284c7d02586a1d936fdad2fe02a0b9769/search-code.js/clean/testing/tests/l10n/web/search-code.js |
var url = SimileAjax.findScript("ajax-api.js"); | var url = SimileAjax.findScript(document, "ajax-api.js"); | (function() { var javascriptFiles = [ "ajax.js", "platform.js", "debug.js", "xmlhttp.js", "dom.js", "graphics.js" ]; var cssFiles = [ ]; var url = SimileAjax.findScript("ajax-api.js"); if ... | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/1676d82cd275ade64f363d0ff85c57a23a9b2318/ajax-api.js/clean/src/webapp/api/ajax-api.js |
SimileAjax.includeJavascriptFile(SimileAjax.urlPrefix + "scripts/" + filename); | SimileAjax.includeJavascriptFile(document, SimileAjax.urlPrefix + "scripts/" + filename); | (function() { var javascriptFiles = [ "ajax.js", "platform.js", "debug.js", "xmlhttp.js", "dom.js", "graphics.js" ]; var cssFiles = [ ]; var url = SimileAjax.findScript("ajax-api.js"); if ... | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/1676d82cd275ade64f363d0ff85c57a23a9b2318/ajax-api.js/clean/src/webapp/api/ajax-api.js |
SimileAjax.includeCssFile(SimileAjax.urlPrefix + "styles/" + filename); | SimileAjax.includeCssFile(document, SimileAjax.urlPrefix + "styles/" + filename); | (function() { var javascriptFiles = [ "ajax.js", "platform.js", "debug.js", "xmlhttp.js", "dom.js", "graphics.js" ]; var cssFiles = [ ]; var url = SimileAjax.findScript("ajax-api.js"); if ... | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/1676d82cd275ade64f363d0ff85c57a23a9b2318/ajax-api.js/clean/src/webapp/api/ajax-api.js |
return function() { | return function() { | return function() { this.initialize.apply(this, arguments); } | 2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/9867ca01ad65827d23c0bf6cc14d8a64137e927d/prototype.js/buggy/tracks/public/javascripts/prototype.js |
setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px")z.ss("none"); $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();} },13); | return a ? this.each(function(){ new fx.FadeSize(this,o).hide(); }) : this._hide(); | setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px")z.ss("none"); $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();} },13); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/fx.js/buggy/fx/fx.js |
return this.each(function(){ if ( !this.$$queue ) { this.$$queue = {}; } if ( !this.$$queue[type] ) { this.$$queue[type] = []; } this.$$queue[type].push( fn ); if ( this.$$queue[type].length == 1 ) { $.apply(this,fn); | return this.queue(function(){ var i = 0; for ( var p in prop ) { var e = new fx( this, $.speed(speed,callback,i++), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ](); | return this.each(function(){ if ( !this.$$queue ) { this.$$queue = {}; } if ( !this.$$queue[type] ) { this.$$queue[type] = []; } this.$$queue[type].push( fn ); if ( this.$$queue[type].length == 1 ) { $.apply(this,fn); } }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/fx.js/buggy/fx/fx.js |
toggleElem.onclick = function() {return false;}; | toggleElems.each(function(toggleElem){ Event.observe(toggleElem, 'click', todoItems.toggleNextActionListing); containerElem = todoItems.findNearestParentByClassName(toggleElem, "container"); collapsedCookie = contextCollapseCookieManager.getCookie(todoItems.buildCookieName(containerElem)); if (c... | 2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/9c7e96e2d3a3c55552e5a5db3ee152e0db81d2b9/todo-items.js/buggy/tracks/public/javascripts/todo-items.js | |
new Effect.Appear(update,{duration:0.15}); | Effect.Appear(update,{duration:0.15}); | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; Position.clone(element, update, {setHeight: false, offsetTop: element.offsetHeight}); } new Effect.Appear(update,{duration:0.15}); }; | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js |
function(e2) { alert("Caught exception: " + e2.message); | function(msg2, e2) { alert("Caught exception: " + msg2 + "\n\nDetails: " + e2.description); | function(e2) { alert("Caught exception: " + e2.message); } : | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/debug.js/clean/src/webapp/api/scripts/debug.js |
test("load(String, Object, Function) - simple: inject text into DOM", function() { expect(2); stop(); $('#first').load("data/name.php", function() { ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); start(); }); | test("serialize()", function() { expect(1); var data = $(':input').not('button').serialize(); ok( data == 'action=Test&text2=Test&radio1=on&radio2=on&check=on&=on&hidden=&foo[bar]=&name=name&=foobar&select1=&select2=3&select3=1', 'Check form serialization as query string' ); | test("load(String, Object, Function) - simple: inject text into DOM", function() { expect(2); stop(); $('#first').load("data/name.php", function() { ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); start(); });}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js |
if (a[0] < b[0]) return -1; if (a[0] > b[0]) return 1; return 0; | if (a[0] < b[0]) return -1; if (a[0] > b[0]) return 1; return 0; | function (a, b) { if (a[0] < b[0]) return -1; if (a[0] > b[0]) return 1; return 0; }); | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/9a7434e4e5fd781e220490be4242a0728da4d798/pref-languages.js/clean/xpfe/components/prefwindow/resources/content/pref-languages.js |
this.mCompositeObservers = this.mCompositeObservers.filter( function (v) { return v != aObserver; } ); | this.compCalendar.mObservers.forEach(function (o) { try { o[method].apply(o, args); } catch (e) { } }); | this.mCompositeObservers = this.mCompositeObservers.filter( function (v) { return v != aObserver; } ); | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/8b05923a158c54d8707abcf10b0aaf728fac322a/calCompositeCalendar.js/buggy/calendar/providers/composite/calCompositeCalendar.js |
setTimeout(function() { drawTableInner(tbodyID, dataArray, textFuncs); }, 0); | setTimeout(function() { DWRUtil.drawTableInner(tbodyID, dataArray, textFuncs); }, 0); | setTimeout(function() { drawTableInner(tbodyID, dataArray, textFuncs); }, 0); | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/1c2e43c84790bfe925e41713280232cd61fc9288/util.js/clean/java/uk/ltd/getahead/dwr/util.js |
jQuery.ajax( type, url, params,function(res){ self.html(res.responseText).each(function(){ if ( callback && callback.constructor == Function ) callback.apply( self, [res.responseText] ); }); $("script", self).each(function(){ eval( this.text || this.textContent || this.innerHTML || ""); }); }); | callback = callback || function(){}; | jQuery.ajax( type, url, params,function(res){ // Inject the HTML into all the matched elements self.html(res.responseText).each(function(){ // If a callback function was provided if ( callback && callback.constructor == Function ) // Execute it within the context of the element callback.apply( self, [re... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/5ec5de6953a22b33de46897c8e915eed300338e6/ajax.js/buggy/src/ajax/ajax.js |
new Effect.Appear(update,{duration:0.15}); | Effect.Appear(update,{duration:0.15}); | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; Position.clone(element, update, {setHeight: false, offsetTop: element.offsetHeight}); } new Effect.Appear(update,{duration:0.15}); }; | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js |
this.bound.start[i] = this.start.bindWithEvent(this, el); | this.elements.each(function(el, i){ this.handles[i].addEvent('mousedown', this.start.bindWithEvent(this, el)); }, this); | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/8ac103886cf6d33ed267fc2e146d71159138c0d8/Sortables.js/buggy/Plugins/Sortables.js | |
var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; | Position.clone(element, update, {setHeight: false, offsetTop: element.offsetHeight}); | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + ... | 708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/controls.js/buggy/public/javascripts/controls.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.