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(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/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; i++ ) { var li = document.createElement("li"); li.className = Test[i][0] ? "pass" : "fail"; li.innerHTML = Test[i][1]; ol.appendChild( li ); if ( !Test[i][0] ) { state = "fail"; bad++; } else good++; } var li = document.createElement("li"); li.className = state; var b = document.createElement("b"); b.innerHTML = files[num] + " <b style='color:black;'>(<b class='fail'>" + bad + "</b>, <b class='pass'>" + good + "</b>, " + Test.length + ")</b>"; b.onclick = function(){ var n = this.nextSibling; if ( jQuery.css( n, "display" ) == "none" ) n.style.display = "block"; else n.style.display = "none"; }; li.appendChild( b ); li.appendChild( ol ); document.getElementById("tests").appendChild( li ); Test = []; if ( ++num < files.length ) runTest( files, num );
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(/&lt;/g, "<").replace(/&gt;/g, ">").replace(/&amp;/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; i++ ) { var li = document.createElement("li"); li.className = Test[i][0] ? "pass" : "fail"; li.innerHTML = Test[i][1]; ol.appendChild( li ); if ( !Test[i][0] ) { state = "fail"; bad++; } else good++; } var li = document.createElement("li"); li.className = state; var b = document.createElement("b"); b.innerHTML = files[num] + " <b style='color:black;'>(<b class='fail'>" + bad + "</b>, <b class='pass'>" + good + "</b>, " + Test.length + ")</b>"; b.onclick = function(){ var n = this.nextSibling; if ( jQuery.css( n, "display" ) == "none" ) n.style.display = "block"; else n.style.display = "none"; }; li.appendChild( b ); li.appendChild( ol ); document.getElementById("tests").appendChild( li ); Test = []; if ( ++num < files.length ) runTest( files, num ); });
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/g, "<br/><br/>") ); }) .toggle('slow'); return false; }); $("#docs").alphaPager( 1 );});
.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/g, "<br/><br/>") ); }) .toggle('slow'); return false; }); $("#docs").alphaPager(function(a){ return $.fn.text.apply( [a.childNodes[1]] ).replace(/^\$\./,"").substr(0,1).toUpperCase(); });});
})
}).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/g, "<br/><br/>") ); }) .toggle('slow'); return false; }); $("#docs").alphaPager(function(a){ return $.fn.text.apply( [a.childNodes[1]] ).replace(/^\$\./,"").substr(0,1).toUpperCase(); });});
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/g, "<br/><br/>") ); }) .toggle('slow'); return false; }); $("#docs").alphaPager(function(a){ return $.fn.text.apply( [a.childNodes[1]] ).replace(/^\$\./,"").substr(0,1).toUpperCase(); });});
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.toLowerCase() == "script") { var url = node.src; var i = url.indexOf(substring); if (i >= 0) { node.src = ""; // null it out so we won't hit it again var count = parseInt(url.substr(substring.length + 1)); SimileAjax.loadingScriptsCount -= count; if (SimileAjax.loadingScriptsCount == 0) { var f = null; if (typeof SimileAjax_onLoad == "string") { f = eval(SimileAjax_onLoad); } else if (typeof SimileAjax_onLoad == "function") { f = SimileAjax_onLoad; } SimileAjax_onLoad = null; if (f != null) { f(); } } return; } } node = node.nextSibling; } }})();
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', 'Check second tab'); start(); });});
});
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', 'Check second tab'); start(); });});
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', '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(); });
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).ajaxError(error).ajaxSuccess(success); $.ajax({url: "data/name.php", beforeSend: send, success: success, error: error, complete: function() { ok( counter.error == 0, 'Check succesful request' ); ok( counter.success == 2, 'Check succesful request' ); ok( counter.complete == 3, 'Check succesful request' ); ok( counter.send == 2, 'Check succesful request' ); counter.error = counter.success = counter.complete = counter.send = 0; $.ajaxTimeout(500); $.ajax({url: "data/name.php?wait=5", beforeSend: send, success: success, error: error, complete: function() { ok( counter.error == 2, 'Check failed request' ); ok( counter.success == 0, 'Check failed request' ); ok( counter.complete == 3, 'Check failed request' ); ok( counter.send == 2, 'Check failed request' ); start(); }}); }});
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', 'Check second tab'); start(); });});
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); $('#foo').ajaxStart(complete).ajaxStop(complete).ajaxSend(send).ajaxComplete(complete).ajaxError(error).ajaxSuccess(success); $.ajax({url: "data/name.php", global: false, beforeSend: send, success: success, error: error, complete: function() { ok( counter.error == 0, 'Check sucesful request without globals' ); ok( counter.success == 1, 'Check sucesful request without globals' ); ok( counter.complete == 0, 'Check sucesful request without globals' ); ok( counter.send == 1, 'Check sucesful request without globals' ); counter.error = counter.success = counter.complete = counter.send = 0; $.ajaxTimeout(500); $.ajax({url: "data/name.php?wait=5", global: false, beforeSend: send, success: success, error: error, complete: function() { ok( counter.error == 1, 'Check failed request without globals' ); ok( counter.success == 0, 'Check failed request without globals' ); ok( counter.complete == 0, 'Check failed request without globals' ); ok( counter.send == 1, 'Check failed request without globals' ); 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(); });
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 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ clone ? a[i].cloneNode(true) : a[i] ] ); } });
$('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 - 1 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) fn.apply( obj, [ 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 ); });
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 = ( dir < 0 ? a.length - 1 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ clone ? a[i].cloneNode(true) : a[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].cloneNode(true) : a[i] ] ); });
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 used jQuery.boxModel = !jQuery.browser.msie || document.compatMode == "CSS1Compat"; var axis = { /** * Get a set of elements containing the unique parents of the matched * set of elements. * * @example $("p").parent() * @before <div><p>Hello</p><p>Hello</p></div> * @result [ <div><p>Hello</p><p>Hello</p></div> ] * * @name parent * @type jQuery */ /** * Get a set of elements containing the unique parents of the matched * set of elements, and filtered by an expression. * * @example $("p").parent(".selected") * @before <div><p>Hello</p></div><div class="selected"><p>Hello Again</p></div> * @result [ <div class="selected"><p>Hello Again</p></div> ] * * @name parent * @type jQuery * @param String expr An expression to filter the parents with */ parent: "a.parentNode", /** * Get a set of elements containing the unique ancestors of the matched * set of elements. * * @example $("span").ancestors() * @before <html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html> * @result [ <body>...</body>, <div>...</div>, <p><span>Hello</span></p> ] * * @name ancestors * @type jQuery */ /** * Get a set of elements containing the unique ancestors of the matched * set of elements, and filtered by an expression. * * @example $("span").ancestors("p") * @before <html><body><div><p><span>Hello</span></p><span>Hello Again</span></div></body></html> * @result [ <p><span>Hello</span></p> ] * * @name ancestors * @type jQuery * @param String expr An expression to filter the ancestors with */ ancestors: jQuery.parents, /** * A synonym for ancestors */ parents: jQuery.parents, /** * Get a set of elements containing the unique next siblings of each of the * matched set of elements. * * It only returns the very next sibling, not all next siblings. * * @example $("p").next() * @before <p>Hello</p><p>Hello Again</p><div><span>And Again</span></div> * @result [ <p>Hello Again</p>, <div><span>And Again</span></div> ] * * @name next * @type jQuery */ /** * Get a set of elements containing the unique next siblings of each of the * matched set of elements, and filtered by an expression. * * It only returns the very next sibling, not all next siblings. * * @example $("p").next(".selected") * @before <p>Hello</p><p class="selected">Hello Again</p><div><span>And Again</span></div> * @result [ <p class="selected">Hello Again</p> ] * * @name next * @type jQuery * @param String expr An expression to filter the next Elements with */ next: "a.nextSibling", /** * Get a set of elements containing the unique previous siblings of each of the * matched set of elements. * * It only returns the immediately previous sibling, not all previous siblings. * * @example $("p").previous() * @before <p>Hello</p><div><span>Hello Again</span></div><p>And Again</p> * @result [ <div><span>Hello Again</span></div> ] * * @name prev * @type jQuery */ /** * Get a set of elements containing the unique previous siblings of each of the * matched set of elements, and filtered by an expression. * * It only returns the immediately previous sibling, not all previous siblings. * * @example $("p").previous("selected") * @before <div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p> * @result [ <div><span>Hello</span></div> ] * * @name prev * @type jQuery * @param String expr An expression to filter the previous Elements with */ prev: "a.previousSibling", /** * Get a set of elements containing all of the unique siblings of each of the * matched set of elements. * * @example $("div").siblings() * @before <p>Hello</p><div><span>Hello Again</span></div><p>And Again</p> * @result [ <p>Hello</p>, <p>And Again</p> ] * * @name siblings * @type jQuery */ /** * Get a set of elements containing all of the unique siblings of each of the * matched set of elements, and filtered by an expression. * * @example $("div").siblings("selected") * @before <div><span>Hello</span></div><p class="selected">Hello Again</p><p>And Again</p> * @result [ <p class="selected">Hello Again</p> ] * * @name siblings * @type jQuery * @param String expr An expression to filter the sibling Elements with */ siblings: jQuery.sibling }; 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 ); }; } /*var to = ["append","prepend","before","after"]; for ( var i = 0; i < to.length; i++ ) new function(){ var n = 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 ); }); }; }*/ var each = { show: function(){ this.style.display = this.oldblock ? this.oldblock : ""; if ( jQuery.css(this,"display") == "none" ) this.style.display = "block"; }, hide: function(){ this.oldblock = jQuery.css(this,"display"); if ( this.oldblock == "none" ) this.oldblock = "block"; this.style.display = "none"; }, toggle: function(){ var d = jQuery.css(this,"display"); $(this)[ !d || d == "none" ? "show" : "hide" ](); }, addClass: function(c){ jQuery.className.add(this,c); }, removeClass: function(c){ jQuery.className.remove(this,c); }, toggleClass: function( c ){ jQuery.className[ jQuery.className.has(this,a) ? "remove" : "add" ](this,c); }, remove: function(a){ if ( !a || jQuery.filter( [this], a ).r ) this.parentNode.removeChild( this ); }, empty: function(){ while ( this.firstChild ) this.removeChild( this.firstChild ); }, bind: function( type, fn ) { jQuery.event.add( this, type, fn ); }, unbind: function( type, fn ) { jQuery.event.remove( this, type, fn ); }, trigger: function( type ) { jQuery.event.trigger( this, type ); } }; for ( var i in each ) new function() { var n = each[i]; jQuery.fn[ i ] = function() { var args = arguments; return this.each(function(){ n.apply( this, args ); }); }; } var attr = { val: "value", html: "innerHTML", value: null, id: null, title: null, name: null, href: null, src: null, rel: null }; for ( var i in attr ) new function() { var n = attr[i]; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); }; } var css = "width,height,top,left,position,float,overflow,color,background".split(","); 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 ); }; }}
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 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ 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 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ clone ? a[i].cloneNode(true) : a[i] ] ); } });
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 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ 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.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 = ( dir < 0 ? a.length - 1 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ clone ? a[i].cloneNode(true) : a[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 = tbody[0]; } for ( var i = ( dir < 0 ? a.length - 1 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ clone ? a[i].cloneNode(true) : a[i] ] ); } });
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 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ clone ? a[i].cloneNode(true) : a[i] ] ); }
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 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ clone ? a[i].cloneNode(true) : a[i] ] ); }
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 : 0 ); i != ( dir < 0 ? dir : a.length ); i += dir ) { fn.apply( obj, [ clone ? a[i].cloneNode(true) : a[i] ] ); } });
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 ); }; });