rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 13 136k | meta stringlengths 132 347 |
|---|---|---|---|
(function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/a208222f3713a7f28499040d924d8c89b41c4350/event.js/clean/event/event.js | ||
jQuery.event.add( document, "DOMContentLoaded", jQuery.ready ); | document.addEventListener( "DOMContentLoaded", jQuery.ready, false ); | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/a208222f3713a7f28499040d924d8c89b41c4350/event.js/clean/event/event.js |
while (SimileAjax.History._currentIndex > c && SimileAjax.History._currentIndex > SimileAjax.History._baseIndex) { SimileAjax.History._currentIndex--; | while (SimileAjax.History._currentIndex > c && SimileAjax.History._currentIndex > SimileAjax.History._baseIndex) { SimileAjax.History._currentIndex--; var action = SimileAjax.History._actions[SimileAjax.History._currentIndex - SimileAjax.History._baseIndex]; try { action.undo(); } catch (e) { SimileAjax.Debug.except... | window.setTimeout(function() { while (SimileAjax.History._currentIndex > c && SimileAjax.History._currentIndex > SimileAjax.History._baseIndex) { SimileAjax.History._currentIndex--; var action = SimileAjax.History._ac... | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/45b1ecd580363267e81dc76f3b50f9a25374c320/history.js/buggy/src/webapp/api/scripts/history.js |
var action = SimileAjax.History._actions[SimileAjax.History._currentIndex - SimileAjax.History._baseIndex]; try { action.undo(); } catch (e) { SimileAjax.Debug.exception("History: Failed to undo action {" + action.label + "}"); } } SimileAjax.History._listeners.fire("onAfterUndoSeveral", []); finishUp(); }, 0); | SimileAjax.History._listeners.fire("onAfterUndoSeveral", []); finishUp(); }, 0); | window.setTimeout(function() { while (SimileAjax.History._currentIndex > c && SimileAjax.History._currentIndex > SimileAjax.History._baseIndex) { SimileAjax.History._currentIndex--; var action = SimileAjax.History._ac... | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/45b1ecd580363267e81dc76f3b50f9a25374c320/history.js/buggy/src/webapp/api/scripts/history.js |
if ( ret ) ret( $.httpData(r,type) ); }); | if ( ret ) ret( $.httpData(r,type) ); }); | $.xml( "POST", url, $.param(data), 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 |
if ( !this.queue ) this.queue = {}; if ( !this.queue[type] ) this.queue[type] = []; this.queue[type].push( fn ); | if ( !this.queue ) this.queue = {}; | 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 ) fn.apply(this); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/fx.js/clean/fx/fx.js |
if ( this.queue[type].length == 1 ) fn.apply(this); }); | if ( !this.queue[type] ) this.queue[type] = []; this.queue[type].push( fn ); if ( this.queue[type].length == 1 ) fn.apply(this); }); | 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 ) fn.apply(this); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/fx.js/clean/fx/fx.js |
return this.find('script').each(function(){ if ( this.src ) // for some weird reason, it doesn't work if the callback is ommited jQuery.getScript( this.src ); else { jQuery.globalEval( this.text || this.textContent || this.innerHTML || "" ); } }).end(); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajax.js/buggy/src/ajax/ajax.js | ||
alert("Caught exception: " + msg2 + "\n\nDetails: " + e2); | if (!SimileAjax.Debug.silent) { alert("Caught exception: " + msg2 + "\n\nDetails: " + e2); } | function(msg2, e2) { alert("Caught exception: " + msg2 + "\n\nDetails: " + e2); }; | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/45b1ecd580363267e81dc76f3b50f9a25374c320/debug.js/buggy/src/webapp/api/scripts/debug.js |
$each(selector, function(sel){ items.push(sel); }); | $each(selector, function(el){ if ($(el)) elements.push(el); }); | $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 |
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' ); | $('#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 |
self.html(res.responseText).each( callback, [res.responseText, status] ); jQuery("script", self).each(function(){ if ( this.src ) jQuery.getScript( this.src ); else eval.call( window, this.text || this.textContent || this.innerHTML || "" ); }); | self.html(res.responseText) .evalScripts() .each( callback, [res.responseText, status] ); | jQuery.ajax( type, url, params,function(res, status){ if ( status == "success" || !ifModified && status == "notmodified" ) { // Inject the HTML into all the matched elements self.html(res.responseText).each( callback, [res.responseText, status] ); // Execute all the scripts inside of the newly-injec... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/cb53fc02b68ca267f9eddd8fd4f5d92ef08ae022/ajax.js/buggy/src/ajax/ajax.js |
function(element, update){ new Effect.Fade(update,{duration:0.3}) }; | function(element, update){ new Effect.Fade(update,{duration:0.15}) }; | function(element, update){ new Effect.Fade(update,{duration:0.3}) }; | 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 |
"src=https: | "src= | new function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," + "submit,keydown,keypress,keyup,error").split(","); // Go through all the event names, but make sur... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/82e217c70cc158086b6b2df7637fda78d0ca81bd/event.js/buggy/event/event.js |
function(row) { var results = data[row]; var reply = ""; for (var report in results) { reply += report + " failures, reported " + results[report] + " time(s).<br/>"; } return reply; } | function(row) { var results = data[row]; var reply = ""; for (var report in results) { reply += report + " failures, reported " + results[report] + " time(s).<br/>"; } return reply; } | function(row) { var results = data[row]; var reply = ""; for (var report in results) { reply += report + " failures, reported " + results[report] + " time(s).<br/>"; } return reply; } | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/a6659fd28de5e0d001fe9e46da6cdb9dd78104c0/testsuite.js/buggy/web/testsuite.js |
$.apply( self, callback, [res.responseText] ); | callback.apply( self, [res.responseText] ); | 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.responseText] ); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/ajax.js/clean/ajax/ajax.js |
$.xml( "POST", url, $.param(data), function(r) { if ( ret ) { ret( $.httpData(r,type) ); } }); | self.html(res.responseText).each(function(){ if ( callback && callback.constructor == Function ) $.apply( self, callback, [res.responseText] ); }); | $.xml( "POST", url, $.param(data), 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 |
return __method.apply(object, arguments); | return __method.apply(object, args.concat($A(arguments))); | return function() { return __method.apply(object, arguments); } | 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 |
__method.apply(object, arguments); | return __method.apply(object, arguments); | return function() { __method.apply(object, arguments); } | 2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/9867ca01ad65827d23c0bf6cc14d8a64137e927d/prototype.js/buggy/tracks/public/javascripts/prototype.js |
z.timer=setInterval(function(){z.step(f,t);}, 13); | return a ? this.each(function(){ new fx.FadeSize(this,o).show(); }) : this._show(); | z.timer=setInterval(function(){z.step(f,t);}, 13); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f0034d64e3890553f214db0708b9a831476ea46a/fx.js/buggy/fx/fx.js |
this.curAnim = prop; | this.curAnim = jQuery.extend({}, prop); | return this.queue(function(){ this.curAnim = prop; for ( var p in prop ) { var e = new jQuery.fx( this, jQuery.speed(speed,callback), p ); if ( prop[p].constructor == Number ) e.custom( e.cur(), prop[p] ); else e[ prop[p] ]( prop ); } }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/692d676e993b198e30c8940ab61745d7578229bf/fx.js/buggy/src/fx/fx.js |
return a ? this.queue(function(){ new $.fx.FadeSize(this,o).hide(); }) : this._hide(); | 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 ) fn.apply(this); }); | return a ? this.queue(function(){ new $.fx.FadeSize(this,o).hide(); }) : this._hide(); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/fx.js/buggy/fx/fx.js |
function(e2) { alert("Caught exception: " + e2); | function(msg2, e2) { alert("Caught exception: " + msg2 + "\n\nDetails: " + e2); | function(e2) { alert("Caught exception: " + e2); }; | 6194 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6194/ad43220ac38569f1b1e9c78f3783829b1f665216/debug.js/clean/src/webapp/api/scripts/debug.js |
"src=javascript:void(0)><\/script>"); | "src=https: | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/aaaa9eb2f390d6153592c0eb2fa31db00ff2b6c0/event.js/clean/event/event.js |
if(typeof console != "undefined") { | if( console && console.error ) { | synchronize(function() { Test = []; try { callback(); } catch(e) { if(typeof console != "undefined") { console.error("Test " + name + " died, exception and test follows"); console.error(e); console.warn(callback.toString()); } Test.push( [ false, "Died on test #" + (Test.length+1) + ": " + e ] ); ... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/215f785de699015ba7221f3414807f9e7474ef4d/testrunner.js/buggy/build/test/data/testrunner.js |
$('#first').load("data/name.php", function() { ok( /^ERROR/.test($('#first').text()), 'Check if content was injected into the DOM' ); start(); }); | test("param", function() { expect(4); var params = {foo:"bar", baz:42, quux:"All your base are belong to us"}; ok( $.param(params) == "foo=bar&baz=42&quux=All%20your%20base%20are%20belong%20to%20us", "simple" ); params = {someName: [1, 2, 3], regularThing: "blah" }; ok( $.param(params) == "someName=1&someName=2&someNa... | $('#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 |
setTimeout(function() { this.openLocation(); }, 0); | window.setTimeout(function() { gPrefService.savePrefFile(null); }, 1000); | setTimeout(function() { this.openLocation(); }, 0); | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/e1400c9125f1ce96798a8c3ff2c3e918c4b7163a/browser.js/buggy/browser/base/content/browser.js |
this.mObservers = this.mObservers.filter( function (v) { return v != aObserver; } ); | cals.forEach(function (c) { if (mgr.getCalendarPref(c, this.mActivePref)) this.addCalendar(c); if (mgr.getCalendarPref(c, this.mDefaultPref)) this.setDefaultCalendar(c, false); }, this); | this.mObservers = this.mObservers.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 |
else eval.call( window, this.text || this.textContent || this.innerHTML || "" ); | else { var data = this.text || this.textContent || this.innerHTML || ""; if (window.execScript) window.execScript( data ); else window.setTimeout( data, 0 ); } | return this.find('script').each(function(){ if ( this.src ) // for some weird reason, it doesn't work if the callback is ommited jQuery.getScript( this.src ); else eval.call( window, this.text || this.textContent || this.innerHTML || "" ); }).end(); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/15a30ba90cb4ff46ea17e775dd20f38f3c07e112/ajax.js/buggy/src/ajax/ajax.js |
this.each(function(){ if ( value == undefined ) for ( var prop in key ) jQuery.attr( type ? this.style : this, prop, key[prop] ); else jQuery.attr( type ? this.style : this, key, value ); }) : | this.each(function(i){ if ( this == obj ) pos = i; }); | this.each(function(){ // See if we're setting a hash of styles if ( value == undefined ) // Set all the styles for ( var prop in key ) jQuery.attr( type ? this.style : this, prop, key[prop] ); // See if we're setting a single key/value style else jQuery.attr( ty... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js |
self.html(res.responseText).each(function(){ if ( callback && callback.constructor == Function ) callback.apply( self, [res.responseText] ); }); | jQuery.ajax( type, url, params,function(res, status){ if ( status == "success" || !ifModified && status == "notmodified" ) { self.html(res.responseText).each( callback, [res.responseText, status] ); $("script", self).each(function(){ if ( this.src ) $.getScript( this.src ); else eval.call( window, this.text || this... | 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, [res.responseText] ); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/5ec5de6953a22b33de46897c8e915eed300338e6/ajax.js/buggy/src/ajax/ajax.js |
this.handles[i].removeEvent('mousedown', this.start.bindWithEvent(this, el)); | this.handles[i].removeEvent('mousedown', this.bound.start[i]); | this.elements.each(function(el, i){ this.handles[i].removeEvent('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 |
jQuery.eval ( this.text || this.textContent || this.innerHTML || "" ); | jQuery.globalEval( this.text || this.textContent || this.innerHTML || "" ); | return this.find('script').each(function(){ if ( this.src ) // for some weird reason, it doesn't work if the callback is ommited jQuery.getScript( this.src ); else { jQuery.eval ( this.text || this.textContent || this.innerHTML || "" ); } }).end(); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/39c05d36493f215155cf446f7d879d3bc96ac2f7/ajax.js/clean/src/ajax/ajax.js |
function(element, update){ new Effect.Fade(update,{duration:0.3}) }; | function(element, update){ new Effect.Fade(update,{duration:0.15}) }; | function(element, update){ new Effect.Fade(update,{duration:0.3}) }; | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/16669774903dd7bfaaf1bf8f0c72e49ebaeffeeb/controls.js/clean/railties/html/javascripts/controls.js |
__method.apply(object, arguments); | return __method.apply(object, arguments); | return function() { __method.apply(object, arguments); } | 708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/clean/public/javascripts/prototype.js |
setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(url)); | setTimeout(function() { gURLBar.focus(); }, 0); | setTimeout(function(aTabElt) { gBrowser.selectedTab = aTabElt; }, 0, gBrowser.addTab(url)); | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a429b6720a457cbc90d1df942a1f58abece300ce/browser.js/buggy/browser/base/content/browser.js |
(function(){ | new function(){ | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); | var e = ("blur,focus,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," + "submit,keydown,keypress,keyup,error").split(","); | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
for ( var i = 0; i < e.length; i++ ) {(function(){ | for ( var i = 0; i < e.length; i++ ) new function(){ | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
jQuery.prototype[o] = function(f){ return this.bind(o, f); }; | jQuery.fn[o] = function(f){ return f ? this.bind(o, f) : this.trigger(o); }; | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
jQuery.prototype["un"+o] = function(f){ return this.unbind(o, f); }; jQuery.prototype["do"+o] = function(){ return this.trigger(o); }; | jQuery.fn["un"+o] = function(f){ return this.unbind(o, f); }; | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
jQuery.prototype["one"+o] = function(f){ | jQuery.fn["one"+o] = function(f){ | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
if ( this[o+f] !== null ) return true; | if ( this[o+f] !== null ) return; | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
})();} /* * All the code that makes DOM Ready work nicely. */ jQuery.isReady = false; jQuery.readyList = []; jQuery.ready = function() { if ( !jQuery.isReady ) { jQuery.isReady = true; if ( jQuery.readyList ) { for ( var i = 0; i < jQuery.readyList.length; i++ ) jQuery.readyList[i].apply( document ); jQuery.... | } | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
if ( jQuery.browser == "mozilla" || jQuery.browser == "opera" ) { | if ( jQuery.browser.mozilla || jQuery.browser.opera ) { | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
} else if ( jQuery.browser == "msie" ) { | } else if ( jQuery.browser.msie ) { | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
} else if ( jQuery.browser == "safari" ) { | } else if ( jQuery.browser.safari ) { | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
})(); | } | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup").split(","); // Go through all the e... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/9477c418dbf50f2341dec7c02f60ab3d77da5378/event.js/clean/event/event.js |
this.each(function(i){ if ( this == obj ) pos = i; }); | this.each(function(){ if ( value == undefined ) for ( var prop in key ) jQuery.attr( type ? this.style : this, prop, key[prop] ); else jQuery.attr( type ? this.style : this, key, value ); }) : | this.each(function(i){ if ( this == obj ) pos = i; }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js |
var e = "blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + | var e = ("blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = "blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup,abort,error,ready".split(","); // Go t... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/0fd3648d45be72bcfe76b95715b38dd5904b47da/event.js/clean/event/event.js |
"change,reset,select,submit,keydown,keypress,keyup,abort,error,ready".split(","); | "change,reset,select,submit,keydown,keypress,keyup").split(","); | (function(){ /* * Bind a number of event-handling functions, dynamically */ var e = "blur,focus,contextmenu,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mouseenter,mouseleave,mousemove,mouseover,mouseout," + "change,reset,select,submit,keydown,keypress,keyup,abort,error,ready".split(","); // Go t... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/0fd3648d45be72bcfe76b95715b38dd5904b47da/event.js/clean/event/event.js |
this.closeTimer=setTimeout(function () {This.onDragCloseTarget()}, This.springLoadedMenuDelay); | this.loadTimer=setTimeout(function () {This.onDragLoadTarget(targetToBeLoaded)}, This.springLoadedMenuDelay); | this.closeTimer=setTimeout(function () {This.onDragCloseTarget()}, This.springLoadedMenuDelay); | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a429b6720a457cbc90d1df942a1f58abece300ce/bookmarksMenu.js/buggy/browser/components/bookmarks/content/bookmarksMenu.js |
$R(1,arguments.length-1).each( function(index) { element.className = element.className.split(' ').reject( function(klass) { return (klass == removeClasses[index]) } ).join(' '); }); | function(klass) { return (klass == removeClasses[index]) } ).join(' '); | $R(1,arguments.length-1).each( function(index) { element.className = element.className.split(' ').reject( function(klass) { return (klass == removeClasses[index]) } ).join(' '); }); | 2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/8a342036a177e27b9f776c900bbae999b6ce8e3c/effects.js/buggy/tracks/public/javascripts/effects.js |
})); | }), 'rgb'); | return new Color(this.map(function(value){ return 255 - value; })); | 5733 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5733/a22dce4bef6b4ef18ff83107a76bdac505312ab0/Color.js/clean/Addons/Color.js |
var data = this.text || this.textContent || this.innerHTML || ""; if (window.execScript) window.execScript( data ); else window.setTimeout( data, 0 ); | jQuery.eval ( this.text || this.textContent || this.innerHTML || "" ); | return this.find('script').each(function(){ if ( this.src ) // for some weird reason, it doesn't work if the callback is ommited jQuery.getScript( this.src ); else { // TODO extract into $.eval var data = this.text || this.textContent || this.innerHTML || ""; if (window.execScript) window.execS... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajax.js/clean/src/ajax/ajax.js |
return this.bind(o, function(e){ | return this.each(function(){ var count = 0; jQuery.event.add( this, o, function(e){ if ( count++ ) return; | new function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," + "submit,keydown,keypress,keyup,error").split(","); // Go through all the event names, but make sur... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f5f6cbc8c0b6441fb1d106749f7124659a3816f0/event.js/clean/event/event.js |
if ( this[o+f] !== null ) return; this[o+f]++; return f.apply(this, [e]); | return f.apply(this, [e]); }); | new function(){ /* * Bind a number of event-handling functions, dynamically */ var e = ("blur,focus,load,resize,scroll,unload,click,dblclick," + "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," + "submit,keydown,keypress,keyup,error").split(","); // Go through all the event names, but make sur... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/f5f6cbc8c0b6441fb1d106749f7124659a3816f0/event.js/clean/event/event.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 ) fn.apply(this); | 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] ]( prop ); } | 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 ) fn.apply(this); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/8a1adfcd2a0ea8fbb72ac53537cbfe6ebeba0cdf/fx.js/buggy/src/fx/fx.js |
this.submit(function(e){ e.preventDefault(); $(this).getForm().putForm(target, pre_cb, post_cb); return this; }); | return this.each(function(){ $('input[@type="submit"],input[@type="image"]', this).click(function(ev){ this.form.clicked = this; if (ev.offsetX != undefined) { this.form.clicked_x = ev.offsetX; this.form.clicked_y = ev.offsetY; } else { this.form.clicked_x = ev.pageX - this.offsetLeft; this.form.clicked_y = ev.pageY - ... | this.submit(function(e){ e.preventDefault(); $(this).getForm().putForm(target, pre_cb, post_cb); return this; }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ce6af8e8894b14c7b2c41b64a097bc49acc73b19/form.js/buggy/form/form.js |
return this.each(function(){ if ( typeof b == 'undefined' ) | this.each(function(){ if ( !b ) | return this.each(function(){ if ( typeof b == 'undefined' ) for ( var j in a ) $.attr(this,j,a[j]); else $.attr(this,a,b); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js |
$.attr(this,j,a[j]); | $.attr(this.style,j,a[j]); | return this.each(function(){ if ( typeof b == 'undefined' ) for ( var j in a ) $.attr(this,j,a[j]); else $.attr(this,a,b); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js |
$.attr(this,a,b); }); | $.attr(this.style,a,b); }) : $.css( this.get(0), a ); | return this.each(function(){ if ( typeof b == 'undefined' ) for ( var j in a ) $.attr(this,j,a[j]); else $.attr(this,a,b); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js |
(this.findElements(element, options) || []).each( function(e) { var handle = options.handle ? Element.childrenWithClassName(e, options.handle)[0] : e; options.draggables.push( new Draggable(e, Object.extend(options_for_draggable, { handle: handle }))); Droppables.add(e, options_for_droppable); options.droppables.push(... | new_sequence.each(function(ident) { var n = nodeMap[ident]; if (n) { n[1].appendChild(n[0]); delete nodeMap[ident]; } | (this.findElements(element, options) || []).each( function(e) { // handles are per-draggable var handle = options.handle ? Element.childrenWithClassName(e, options.handle)[0] : e; options.draggables.push( new Draggable(e, Object.extend(options_for_draggable, { handle: handle }))); ... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); | jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn ); | jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/6a50758086f2db26b12b12e8c58a42cbbd28a98a/jquery.js/buggy/jquery/jquery.js |
test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); stop(); $.getJSON("data/json.php", function(json) { | $.getJSON("data/json.php", function(json) { | test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); stop(); $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); });}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js |
}); | test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); stop(); $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); });}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js | |
} | }; | for ( var i in attr ) new function() { var n = attr[i] || i; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); }; } | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/4737936c0b05236ecafa86f0186b0b236a2ff826/jquery.js/buggy/jquery/jquery.js |
test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); | test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4); | test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); stop(); $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); });}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js |
$.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); | $.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); | test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); stop(); $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); });}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js |
return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) { | this.each(function(value, index) { if (!iterator(value, index)) results.push(value); }); | return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) { | 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.findElements(element, options) || []).each( function(e) { var handle = options.handle ? Element.childrenWithClassName(e, options.handle)[0] : e; options.draggables.push( new Draggable(e, Object.extend(options_for_draggable, { handle: handle }))); Droppables.add(e, options_for_droppable); options.droppables.push(... | new_sequence.each(function(ident) { var n = nodeMap[ident]; if (n) { n[1].appendChild(n[0]); delete nodeMap[ident]; } | (this.findElements(element, options) || []).each( function(e) { // handles are per-draggable var handle = options.handle ? Element.childrenWithClassName(e, options.handle)[0] : e; options.draggables.push( new Draggable(e, Object.extend(options_for_draggable, { handle: handle }))); ... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
$.getJSON("data/json.php", function(json) { | test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); stop(); $.getJSON("data/json.php", function(json) { | $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js |
}); | $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js | |
for ( var i in css ) new function() { var n = css[i]; jQuery.fn[ i ] = function(h) { | jQuery.fn[ i ] = function(h) { | for ( var i in css ) new function() { var n = css[i]; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? jQuery.css( this[0], n ) : null : this.css( n, h ); }; } | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3d334ad8066f040e4878be45d8230a599176351b/jquery.js/clean/jquery/jquery.js |
} | for ( var i in css ) new function() { var n = css[i]; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? jQuery.css( this[0], n ) : null : this.css( n, h ); }; } | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3d334ad8066f040e4878be45d8230a599176351b/jquery.js/clean/jquery/jquery.js | |
}).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value'); | return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) { | }).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value'); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
jQuery.each( jQuery.macros.filter, function(i,n){ jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn ); | jQuery.fn[ i ] = function() { return this.each( n, arguments ); | jQuery.each( jQuery.macros.filter, function(i,n){ jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn ); }; }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js |
}); | jQuery.each( jQuery.macros.filter, function(i,n){ jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn ); }; }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ccf9d4406296fed48aae0989f2303287f133ed9e/jquery.js/clean/src/jquery/jquery.js | |
for ( var i in attr ) new function() { var n = attr[i] || i; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); }; }; | jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); }; | for ( var i in attr ) new function() { var n = attr[i] || i; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); }; }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/efe0fef88082eebf66e9b7c250a6a072a5aa1966/jquery.js/clean/jquery/jquery.js |
}).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value'); | return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) { | }).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value'); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/buggy/railties/html/javascripts/prototype.js |
jQuery.fn[ i ] = function() { return this.each( n, arguments ); | jQuery.each( jQuery.macros.filter, function(i,n){ jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn ); | jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js |
}); | jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/69efa31318238a1af5644da7aa5dc691dc33b376/jquery.js/clean/src/jquery/jquery.js | |
jQuery.each( jQuery.macros.filter, function(i,n){ jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn ); }; }); | return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); | jQuery.each( jQuery.macros.filter, function(i,n){ jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn ); }; }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/feabeb8572979f7888bd73e80f436bece1448e5a/jquery.js/buggy/src/jquery/jquery.js |
jQuery.fn[ i ] = function(h) { | for ( var i in attr ) new function() { var n = attr[i] || i; jQuery.fn[ i ] = function(h) { | jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? jQuery.css( this[0], n ) : null : this.css( n, h ); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/7d57c67749a4c38d80de6d5ed7917f4219ce34b4/jquery.js/buggy/jquery/jquery.js |
this.length ? jQuery.css( this[0], n ) : null : this.css( n, h ); | this.length ? this[0][n] : null : this.attr( n, h ); | jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? jQuery.css( this[0], n ) : null : this.css( n, h ); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/7d57c67749a4c38d80de6d5ed7917f4219ce34b4/jquery.js/buggy/jquery/jquery.js |
} | jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? jQuery.css( this[0], n ) : null : this.css( n, h ); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/7d57c67749a4c38d80de6d5ed7917f4219ce34b4/jquery.js/buggy/jquery/jquery.js | |
return this.each(function(){$.event.trigger(this,t);}); | this.each(function(){ old[old.length] = this; ret = $.merge( ret, $.Select(t,this) ); }); | return this.each(function(){$.event.trigger(this,t);}); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/c3c706d3f24dbad0fdeb80fe9caf158bd9d6de66/jquery.js/buggy/jquery/jquery.js |
(!options.only || (Element.hasClassName(e, options.only)))) | (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) | $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildre... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js |
$A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(gran... | return Sortable.tree(element, arguments[1]).children.map( function (item) { return [name + Sortable._constructIndex(item) + "=" + encodeURIComponent(item.id)].concat(item.children.map(arguments.callee)); }).flatten().join('&'); | $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options);... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js |
jQuery.each( jQuery.macros.css, function(i,n){ | jQuery.each( jQuery.macros.attr, function(i,n){ n = n || i; | jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ i ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); }; }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/6a50758086f2db26b12b12e8c58a42cbbd28a98a/jquery.js/buggy/jquery/jquery.js |
( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); | this.length ? this[0][n] : null : this.attr( n, h ); | jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ i ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); }; }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/6a50758086f2db26b12b12e8c58a42cbbd28a98a/jquery.js/buggy/jquery/jquery.js |
$.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); | test("$.post(String, Hash, Function) - simple with xml", function() { expect(2); stop(); $.post("data/name.php", {xml: "5-2"}, function(xml){ $('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); }); | $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js |
}); | $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/ae58d24fd55e33b9977516988e696466fdaefa18/ajaxTest.js/clean/src/ajax/ajaxTest.js | |
$.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); | $.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); | $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); }); | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/898ca3198b3297f68eb77ad128450ad8f952e15e/ajaxTest.js/buggy/src/ajax/ajaxTest.js |
}).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value'); | return this.collect(function(value, index) { return {value: value, criteria: iterator(value, index)}; }).sort(function(left, right) { | }).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value'); | 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 |
$A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(gran... | return Sortable.tree(element, arguments[1]).children.map( function (item) { return [name + Sortable._constructIndex(item) + "=" + encodeURIComponent(item.id)].concat(item.children.map(arguments.callee)); }).flatten().join('&'); | $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options);... | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js |
test("$.post(String, Hash, Function) - simple with xml", function() { expect(2); stop(); $.post("data/name.php", {xml: "5-2"}, function(xml){ $('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); }); | $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); | test("$.post(String, Hash, Function) - simple with xml", function() { expect(2); stop(); $.post("data/name.php", {xml: "5-2"}, function(xml){ $('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); }); start(... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js |
}); | test("$.post(String, Hash, Function) - simple with xml", function() { expect(2); stop(); $.post("data/name.php", {xml: "5-2"}, function(xml){ $('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); }); start(... | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/dc6f9cfc9cd0e2393b8f3087d8fcfa8e03260d4c/ajaxTest.js/buggy/src/ajax/ajaxTest.js | |
jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? jQuery.css( this[0], n ) : null : this.css( n, h ); }; | jQuery.swap( e, old, function() { if (jQuery.css(e,"display") != "none") { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else jQuery.swap( e, { visibility: "hidden", position: "absolute", display: "" }, function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; }); }); | jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? jQuery.css( this[0], n ) : null : this.css( n, h ); }; | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/3d334ad8066f040e4878be45d8230a599176351b/jquery.js/clean/jquery/jquery.js |
return this.map(function(value, index) { iterator(value = collections.pluck(index)); return value; }); | }).sort(function(left, right) { var a = left.criteria, b = right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value'); | return this.map(function(value, index) { iterator(value = collections.pluck(index)); return value; }); | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/7d101d58400acaff232091485c8e140f0a37cbaf/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.