rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
jQuery.map( this, function(a){ return a } ) : | this.each(function(i){ if ( this == obj ) pos = i; }); | jQuery.map( this, function(a){ return a } ) : |
window.setTimeout(function() { a.step(); }, 100); | window.setTimeout(function() { a.step(); }, 50); | window.setTimeout(function() { a.step(); }, 100); |
$.get(files[num],function(js){ js = js.replace(/</g, "<").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 < ... | synchronize(function() { blocking = true; $.get('index.html', function(content) { var div = $(document.createElement('div')).html(content) .find('[@id=main]').html(); $('#main').html(div); blocking = false; process(); }); | $.get(files[num],function(js){ js = js.replace(/</g, "<").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... |
this.loadTimer=setTimeout(function () {This.onDragLoadTarget(targetToBeLoaded)}, This.springLoadedMenuDelay); | setTimeout(function() { BookmarksMenu.delayedHideOpenInTabsMenuItem(); }, 0); | this.loadTimer=setTimeout(function () {This.onDragLoadTarget(targetToBeLoaded)}, This.springLoadedMenuDelay); |
$("#docs").alphaPager( 1 ); | $("#docs").alphaPager(function(a){ return $.fn.text.apply( [a.childNodes[1]] ).replace(/^\$\./,"").substr(0,1).toUpperCase(); }); | $(document).ready(function(){ $("span.tooltip").each(function(){ if ( types[ this.innerHTML ] ) this.title = types[ this.innerHTML ]; }).ToolTipDemo('#fff'); $("a.name").click(function(){ $("div.more,div.short",this.parentNode.parentNode) .find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/... |
.find("div.desc",function(){ | .find("div.desc").each(function(){ | $(document).ready(function(){ $("span.tooltip").each(function(){ if ( types[ this.innerHTML ] ) this.title = types[ this.innerHTML ]; }).ToolTipDemo('#fff'); $("a.name").click(function(){ $("div.more,div.short",this.parentNode.parentNode) .find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/... |
}) | }).end() | $(document).ready(function(){ $("span.tooltip").each(function(){ if ( types[ this.innerHTML ] ) this.title = types[ this.innerHTML ]; }).ToolTipDemo('#fff'); $("a.name").click(function(){ $("div.more,div.short",this.parentNode.parentNode) .find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/... |
return $.fn.text.apply( [a.childNodes[1]] ).replace(/^\$\./,"").substr(0,1).toUpperCase(); | return $.fn.text.apply( [a.getElementsByTagName("span")[2]] ).replace(/^\$\./,"").substr(0,1).toUpperCase(); | $(document).ready(function(){ $("span.tooltip").each(function(){ if ( types[ this.innerHTML ] ) this.title = types[ this.innerHTML ]; }).ToolTipDemo('#fff'); $("a.name").click(function(){ $("div.more,div.short",this.parentNode.parentNode) .find("div.desc",function(){ $(this).html( $(this).html().replace(/\n\n/... |
return a && b ? this.click(function(e){ | return a && b && a.constructor == Function && b.constructor == Function ? this.click(function(e){ | return a && b ? 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; }) : |
SimileAjax_onLoad = null; | (function() { var substring = SimileAjax.urlPrefix + "scripts/signal.js"; var heads = document.documentElement.getElementsByTagName("head"); for (var h = 0; h < heads.length; h++) { var node = heads[h].firstChild; while (node != null) { if (node.nodeType == 1 && node.tagName.toLowerCas... | |
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(){ var state = $(this).is(":hidden") ? "show" : "hide"; $(this).animate({height: state}, speed, callback); | 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 ); } }); |
gBrowser.addEventListener("PageShow", function(evt) { setTimeout(pageShowEventHandlers, 0, evt); }, true); | gBrowser.addEventListener("pageshow", function(evt) { setTimeout(pageShowEventHandlers, 0, evt); }, true); | gBrowser.addEventListener("PageShow", function(evt) { setTimeout(pageShowEventHandlers, 0, evt); }, true); |
$('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.offsetTop; } }); | $.xml(mth, url, $.param(this.vars), function(r) { eval(r.responseText); }); | $('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.offsetTop; ... |
return $.map( $a, function(b){ if ( b.constructor == String ) { return document.getElementById(b); } return b; }); | return this.each(function(){ if ( b == undefined ) for ( var j in a ) $.attr(this,j,a[j]); else $.attr(this,a,b); }); | return $.map( $a, function(b){ if ( b.constructor == String ) { return document.getElementById(b); } return b; }); |
setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); } if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();} },13); | z.timer = setInterval(function(){ z.step(from, to); }, 13); | setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); } if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();} },13); |
for ( var i = 0; i < t.length; i++ ) | for ( var i = 0, tl = t.length; i < tl; i++ ) | jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; return null; }) || |
function (event) { FeedHandler.onLinkAdded(event); }, | setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0); | function (event) { FeedHandler.onLinkAdded(event); }, |
z.timer=setInterval(function(){z.step(f,t);}, 13); | setTimeout(function(){ y.overflow = z.oo; if(y.height=="0px"||y.width=="0px"){z.ss("none");} if ( ty != "opacity" && z.o.auto ) { $.setAuto( z.el, "height" ); $.setAuto( z.el, "width" ); } if(z.o.onComplete.constructor == Function){z.el.$_ = z.o.onComplete;z.el.$_();} },13); | z.timer=setInterval(function(){z.step(f,t);}, 13); |
return false; | return null; | jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; return false; }) || |
test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2); stop(); $.get('data/dashboard.xml', function(xml) { | $.get('data/dashboard.xml', function(xml) { | test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2); stop(); $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Ch... |
}); | test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2); stop(); $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Ch... | |
test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2); | test("test global handlers - success", function() { expect(8); | test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2); stop(); $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Ch... |
$.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); }); | var counter = { complete: 0, success: 0, error: 0, send: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ }, send = function() { counter.send++ }; $('#foo').ajaxStart(complete).ajaxStop(complete).ajaxSend(send).ajaxComplete(complete).aj... | test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2); stop(); $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Ch... |
return a ? this.each(function(){ new fx.FadeSize(this,o).show(); }) : this._show(); | z.timer=setInterval(function(){z.step(f,t);}, 13); | return a ? this.each(function(){ new fx.FadeSize(this,o).show(); }) : this._show(); |
$.get('data/dashboard.xml', function(xml) { | test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2); stop(); $.get('data/dashboard.xml', function(xml) { | $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); }); |
}); | $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); }); | |
setTimeout(function(loc) { gURLBar.value = ""; gURLBar.value = loc; SetPageProxyState("valid"); }, 0, location); | setTimeout(function() { findField.value = browser.findString; }, 0, findField, browser); | setTimeout(function(loc) { gURLBar.value = ""; // hack for bug 249322 gURLBar.value = loc; SetPageProxyState("valid"); }, 0, location); |
jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; }) || | return this.pushStack( jQuery.map( this, function(a){ return a.cloneNode( deep != undefined ? deep : true ); }), arguments ); | jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; }) || |
if (i>0) do event.remove(els[i-1], type); while (--i); | if (i>0) do if (type != 'unload') event.remove(els[i-1], type); while (--i); | if ($.browser.msie) $(window).unload(function() { var event = jQuery.event, global = event.global; for (var type in global) { var els = global[type], i = els.length; if (i>0) do event.remove(els[i-1], type); while (--i); }}); |
return this.pushStack( jQuery.map( this, function(a){ return a.cloneNode( deep != undefined ? deep : true ); }), arguments ); | jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; }) || | return this.pushStack( jQuery.map( this, function(a){ return a.cloneNode( deep != undefined ? deep : true ); }), arguments ); |
return false; | jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; }) || | |
this.each(function(){this.parentNode.removeChild( this );}); | return this.each(function(){ var b = a[0].cloneNode(true); this.parentNode.insertBefore( b, this ); while ( b.firstChild ) b = b.firstChild; b.appendChild( this ); }); | this.each(function(){this.parentNode.removeChild( this );}); |
z.timer=setInterval(function(){z.step(f,t);}, 13); | (function(){ for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase()); }; })();} })(); | z.timer=setInterval(function(){z.step(f,t);}, 13); |
m.addEventListener("command", function() { for (var i = 0; i < undoItems.length; i++) undoCloseTab(); }, false); | function (event) { FeedHandler.onLinkAdded(event); }, | m.addEventListener("command", function() { for (var i = 0; i < undoItems.length; i++) undoCloseTab(); }, false); |
(function(){ for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; })();} })(); | z.timer=setInterval(function(){z.step(f,t);}, 13); | (function(){ for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; })();}})(); |
$.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { | $('tab', xml).each(function() { | $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); }); |
ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); }); | $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); }); | |
$.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); }); | test("test global handlers - failure", function() { expect(8); stop(); var counter = { complete: 0, success: 0, error: 0, send: 0 }, success = function() { counter.success++ }, error = function() { counter.error++ }, complete = function() { counter.complete++ }, send = function() { counter.send++ }; $.ajaxTimeout(0); $... | $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); }); |
return this.each(function(){ new fx.Resize(this,o).show("height"); }); | for(var i in fx.ty){(function(){ var c = fx.ty[i]; fx[c] = function(a,b){ return new fx(a,b,c.toLowerCase(),c);}; })()} | return this.each(function(){ new fx.Resize(this,o).show("height"); }); |
if ( table && this.nodeName == "TABLE" ) { | if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) { | return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } for ( var i = ( dir < 0 ? a.length - 1... |
$('tab', xml).each(function() { | $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { | $('tab', xml).each(function() { content.push($(this).text()); }); |
ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); }); | $('tab', xml).each(function() { content.push($(this).text()); }); | |
setTimeout(function () { FeedHandler.updateFeeds(); }, 0); | setTimeout(function(loc) { gURLBar.value = ""; gURLBar.value = loc; SetPageProxyState("valid"); }, 0, location); | setTimeout(function () { FeedHandler.updateFeeds(); }, 0); |
jQuery.grep(this,function(a){ return a != t; }), arguments ); | jQuery.grep(this,function(a){ return a != t; }) ); | jQuery.grep(this,function(a){ return a != t; }), arguments ); |
jQuery.grep(this,function(a){ return a != t; }), arguments ); | jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; }) || | jQuery.grep(this,function(a){ return a != t; }), arguments ); |
jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; }) || | jQuery.grep(this,function(a){ return a != t; }), arguments ); | jQuery.map(this,function(a){ for ( var i = 0; i < t.length; i++ ) if ( jQuery.filter(t[i],[a]).r.length ) return a; }) || |
i != ( dir < 0 ? dir : a.length ); i += dir ) fn.apply( obj, [ a[i] ] ); | i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ clone ? a[i].cloneNode(true) : a[i] ] ); } | return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } for ( var i = ( dir < 0 ? a.length - ... |
return this.each(function(){ var b = a[0].cloneNode(true); this.parentNode.insertBefore( b, this ); while ( b.firstChild ) b = b.firstChild; b.appendChild( this ); }); | return this.domManip(function(){ for ( var i = 0; i < a.length; i++ ) this.appendChild( clone ? a[i].cloneNode(true) : a[i] ); }); | return this.each(function(){ var b = a[0].cloneNode(true); this.parentNode.insertBefore( b, this ); while ( b.firstChild ) b = b.firstChild; b.appendChild( this ); }); |
if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) { | if ( table && this.nodeName.toUpperCase() == "TABLE" && a[0].nodeName.toUpperCase() != "THEAD" ) { | return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } for ( var i =... |
(function(){ for(var $i in $.fx.ty){(function(){ | for(var $i in $.fx.ty){(function(){ | (function(){ for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; })();}})(); |
return new $.fx(a,b,c.toLowerCase(),c); | return new $.fx(a,b,c.toLowerCase()); | (function(){ for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; })();}})(); |
})(); | (function(){ for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; })();}})(); | |
m.addEventListener("command", function(aEvent) { undoCloseTab(aEvent.originalTarget.getAttribute("value")); }, false); | m.addEventListener("command", function() { for (var i = 0; i < undoItems.length; i++) undoCloseTab(); }, false); | m.addEventListener("command", function(aEvent) { undoCloseTab(aEvent.originalTarget.getAttribute("value")); }, false); |
for ( var i=0; i < a.length; i++ ) | for ( var i = 0, al = a.length; i < al; i++ ) | return this.each(function(){ var obj = this; if ( table && this.nodeName.toUpperCase() == "TABLE" && a[0].nodeName.toUpperCase() == "TR" ) obj = this.getElementsByTagName("tbody")[0] || this.appendChild(document.createElement("tbody")); for ( var i=0; i < a.length; i++ ) fn.apply( obj, [ clone ? a[i].clon... |
for(var $i in $.fx.ty){(function(){ | (function(){ for(var $i in $.fx.ty){(function(){ | for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; })();} |
})(); | for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; })();} | |
$('tab', xml).each(function() { content.push($(this).text()); }); | test("$.getIfModified(String, Hash, Function)", function() { expect(1); stop(); $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); }); }); | $('tab', xml).each(function() { content.push($(this).text()); }); |
$('tab', xml).each(function() { | test("$.get(String, Hash, Function) - parse xml and use text() on nodes", function() { expect(2); stop(); $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { | $('tab', xml).each(function() { content.push($(this).text()); }); |
ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); }); }); | $('tab', xml).each(function() { content.push($(this).text()); }); | |
return this.each(function(){ new fx.Resize(this,o).hide("height"); }); | fx[c] = function(a,b){ return new fx(a,b,c.toLowerCase(),c);}; | return this.each(function(){ new fx.Resize(this,o).hide("height"); }); |
test("$.getIfModified(String, Hash, Function)", function() { expect(1); stop(); $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); }); }); | $('tab', xml).each(function() { content.push($(this).text()); }); | test("$.getIfModified(String, Hash, Function)", function() { expect(1); stop(); $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); });}); |
var args = arguments; return this.each(function(){ n.apply( this, args ); }); }; } | return this.each( n, arguments ); }; }; | new function() { var b = navigator.userAgent.toLowerCase(); // Figure out what browser is being used jQuery.browser = { safari: /webkit/.test(b), opera: /opera/.test(b), msie: /msie/.test(b) && !/opera/.test(b), mozilla: /mozilla/.test(b) && !/compatible/.test(b) }; // Check to see if the W3C box model is being use... |
setTimeout(function () { updatePageStyles(); }, 0); | setTimeout(function () { FeedHandler.updateFeeds(); }, 0); | setTimeout(function () { updatePageStyles(); }, 0); |
return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } for ( var i = ( dir < 0 ? a.length - 1 : ... | jQuery.grep(this,function(a){ return a != t; }), arguments ); | return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } for ( var ... |
for ( var i in a ) | for ( var i = 0; i < a.length; i++ ) | return this.each(function(){ for ( var i in a ) this.appendChild( clone ? a[i].cloneNode(true) : a[i] ); }); |
jQuery.grep(this,function(a){ return a != t; }), arguments ); | return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } for ( var i = ( dir < 0 ? a.length - 1 : ... | jQuery.grep(this,function(a){ return a != t; }), arguments ); |
return this.each(function(){ var obj = this; if ( table && this.nodeName.toUpperCase() == "TABLE" && a[0].nodeName.toUpperCase() != "THEAD" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } for ( var i =... | var ifCallback = ifCallback || function() {}; | return this.each(function(){ var obj = this; if ( table && this.nodeName.toUpperCase() == "TABLE" && a[0].nodeName.toUpperCase() != "THEAD" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = t... |
return this.domManip(function(){ for ( var i = 0; i < a.length; i++ ) this.appendChild( clone ? a[i].cloneNode(true) : a[i] ); }); | return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i]).append( this ); }); | return this.domManip(function(){ for ( var i = 0; i < a.length; i++ ) this.appendChild( clone ? a[i].cloneNode(true) : a[i] ); }); |
for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); | $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase()); | for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; })();} |
})();} | for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; })();} | |
$.fx[c] = function(a,b){ | for(var $i in $.fx.ty){(function(){ var c = $.fx.ty[$i]; $.fx[c] = function(a,b){ | $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; |
})();} | $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; | |
test("$.getIfModified(String, Hash, Function)", function() { expect(1); stop(); $.getIfModified("data/name.php", function(msg) { ok( msg == 'ERROR', 'Check ifModified' ); | $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); | test("$.getIfModified(String, Hash, Function)", function() { expect(1); stop(); $.getIfModified("data/name.php", function(msg) { ok( msg == 'ERROR', 'Check ifModified' ); start(); });}); |
}); | test("$.getIfModified(String, Hash, Function)", function() { expect(1); stop(); $.getIfModified("data/name.php", function(msg) { ok( msg == 'ERROR', 'Check ifModified' ); start(); });}); | |
test("$.getIfModified(String, Hash, Function)", function() { expect(1); stop(); $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); | $.get('data/dashboard.xml', function(xml) { var content = []; $('tab', xml).each(function() { content.push($(this).text()); }); ok( content[0] == 'blabla', 'Check first tab'); ok( content[1] == 'blublu', 'Check second tab'); start(); | test("$.getIfModified(String, Hash, Function)", function() { expect(1); stop(); $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); });}); |
}); | test("$.getIfModified(String, Hash, Function)", function() { expect(1); stop(); $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); });}); | |
return a ? this.each(function(){ new fx.Opacity(this,o).hide(); }) : this._hide(); | for(var i in fx.fn){(function(){ var j = fx.fn[i]; z[j] = function(a,b){ if(c(a,b,"height")) h[j](); if(c(a,b,"width")) w[j](); }; })()} | return a ? this.each(function(){ new fx.Opacity(this,o).hide(); }) : this._hide(); |
$.getIfModified("data/name.php", function(msg) { | test("$.getIfModified(String, Hash, Function)", function() { expect(1); stop(); $.getIfModified("data/name.php", function(msg) { | $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); }); |
}); | $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); }); | |
setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0); | setTimeout(function () { updatePageStyles(); }, 0); | setTimeout(function() { if (document.getElementById("highlight").checked) toggleHighlight(true); }, 0); |
jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; | return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } for ( var i = ( dir < 0 ? a.length - 1 : ... | jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }); |
for ( var i in axis ) new function(){ var t = axis[i]; jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,t); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }; | jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,t); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; | for ( var i in axis ) new function(){ var t = axis[i]; jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,t); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }; |
return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } for ( var i = ( dir < 0 ? a.length - 1 : ... | jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; | return this.each(function(){ var obj = this; if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } for ( var ... |
jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }); | var elseCalllback = elseCallback || function() {}; | jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }); |
if ( a ) ret = jQuery.filter(a,ret).r; | if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; | for ( var i in axis ) new function(){ var t = axis[i]; jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,t); if ( a ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; } |
} | }; | for ( var i in axis ) new function(){ var t = axis[i]; jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,t); if ( a ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; } |
return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i]).append( this ); }); | return this.domManip(function(){ for ( var i = a.length - 1; i >= 0; i-- ) this.insertBefore( clone ? a[i].cloneNode(true) : a[i], this.firstChild ); }); | return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i]).append( this ); }); |
$.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); | for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){ if(c(a,b,"height")) { h[j](); } if(c(a,b,"width")) { w[j](); } | $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); }; |
for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){ if(c(a,b,"height")) { h[j](); } if(c(a,b,"width")) { w[j](); } | $.fx[c] = function(a,b){ return new $.fx(a,b,c.toLowerCase(),c); | for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){ if(c(a,b,"height")) { h[j](); } if(c(a,b,"width")) { w[j](); } }; })();} |
})();} | for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){ if(c(a,b,"height")) { h[j](); } if(c(a,b,"width")) { w[j](); } }; })();} | |
$.getIfModified("data/name.php", function(msg) { ok( msg == 'ERROR', 'Check ifModified' ); start(); | test("$.getScript(String, Function) - with callback", function() { expect(2); stop(); $.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); | $.getIfModified("data/name.php", function(msg) { ok( msg == 'ERROR', 'Check ifModified' ); start(); }); |
}); | $.getIfModified("data/name.php", function(msg) { ok( msg == 'ERROR', 'Check ifModified' ); start(); }); | |
$.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); }); | $('tab', xml).each(function() { content.push($(this).text()); }); | $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); }); |
return a ? this.each(function(){ new fx.Opacity(this,o).show(); }) : this._show(); | z[j] = function(a,b){ if(c(a,b,"height")) h[j](); if(c(a,b,"width")) w[j](); }; | return a ? this.each(function(){ new fx.Opacity(this,o).show(); }) : this._show(); |
test("$.getScript(String, Function) - with callback", function() { expect(2); stop(); $.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); | $.getIfModified("data/name.php", function(msg) { ok( /^ERROR/.test(msg), 'Check ifModified' ); start(); | test("$.getScript(String, Function) - with callback", function() { expect(2); stop(); $.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); });}); |
}); | test("$.getScript(String, Function) - with callback", function() { expect(2); stop(); $.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); });}); | |
jQuery.fn[ i ] = function(a) { | jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { | jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; |
}); | jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; | |
jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,t); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); | for ( var i = 0; i < jQuery.macros.to.length; i++ ) new function(){ var n = jQuery.macros.to[i]; jQuery.fn[ n + "To" ] = function(){ var a = arguments; return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); }); }; | jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,t); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; |
jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { | jQuery.fn[ i ] = function(a) { | jQuery.each( jQuery.macros.axis, function(i,n){ jQuery.fn[ i ] = function(a) { var ret = jQuery.map(this,n); if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r; return this.pushStack( ret, arguments ); }; }); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.