rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
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(){
|
function(){
|
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.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.each( jQuery.macros.attr, function(i,n){ n = n || i; 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.each( jQuery.macros.attr, function(i,n){ n = n || i; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); }; });
|
});
|
jQuery.each( jQuery.macros.attr, function(i,n){ n = n || i; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, 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 ); }; };
|
jQuery.fn[ i ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, 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 ); }; };
|
jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn );
|
jQuery.each( jQuery.macros.attr, function(i,n){ n = n || i; 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.each( jQuery.macros.attr, function(i,n){ n = n || i; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h );
|
jQuery.fn[ i ] = function() { return this.each( n, arguments );
|
jQuery.each( jQuery.macros.attr, function(i,n){ n = n || i; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); }; });
|
function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; });
|
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 ); }; }
|
function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; });
|
return this.pushStack( $.map( this, function(a){ return jQuery.Select(t,a); }), arguments );
|
return this.pushStack( $.map(this,function(a){ for ( var i = 0; i < p.length; i++ ) if ( jQuery.filter(p[i],[a]).r.length ) return a; }), arguments );
|
return this.pushStack( $.map( this, function(a){ return jQuery.Select(t,a); }), arguments );
|
this.cur = $.map(this.cur,function(d){ return d.parentNode; });
|
return this.each(function(){ var obj = this; if ( this.nodeName == "TABLE" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } fn.apply( obj ); });
|
this.cur = $.map(this.cur,function(d){ return d.parentNode; });
|
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.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 ); }; });
|
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; }); });
|
$.post("data/name.php", {xml: "5-2"}, function(xml){ $('math', xml).each(function() {
|
$('math', xml).each(function() {
|
$.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(); });
|
start(); });
|
$.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(); });
|
|
this.length ? jQuery.css( this[0], n ) : null :
|
( this.length ? jQuery.css( this[0], n ) : null ) :
|
jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? jQuery.css( this[0], n ) : null : this.css( n, h ); };
|
$.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' );
|
$.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(); });
|
return this.select(function(value) { return value != undefined || value != null;
|
return this.map(function(value, index) { iterator(value = collections.pluck(index)); return value;
|
return this.select(function(value) { return value != undefined || value != null; });
|
$('math', xml).each(function() {
|
$.post("data/name.php", {xml: "5-2"}, function(xml){ $('math', xml).each(function() {
|
$('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); });
|
start(); });
|
$('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); });
|
|
jQuery.each( jQuery.macros.attr, function(i,n){ n = n || i; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); }; });
|
"~", function(a){ var r = []; var s = jQuery.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r.push( s[i] ); return r; }
|
jQuery.each( jQuery.macros.attr, function(i,n){ n = n || i; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); }; });
|
jQuery.fn[ i ] = function(h) {
|
jQuery.each( jQuery.macros.attr, function(i,n){ n = n || i; jQuery.fn[ i ] = function(h) {
|
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 ); };
|
|
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 ); };
|
jQuery.each( jQuery.macros.attr, function(i,n){ n = n || i; jQuery.fn[ i ] = function(h) {
|
jQuery.fn[ i ] = function(h) {
|
jQuery.each( jQuery.macros.attr, function(i,n){ n = n || 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 );
|
jQuery.each( jQuery.macros.filter, function(i,n){ 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 ); };
|
return this.pushStack( $.map(this,function(a){ for ( var i = 0; i < p.length; i++ ) if ( jQuery.filter(p[i],[a]).r.length ) return a; }), arguments );
|
jQuery.grep(this,function(a){ return a != t; }), arguments );
|
return this.pushStack( $.map(this,function(a){ for ( var i = 0; i < p.length; i++ ) if ( jQuery.filter(p[i],[a]).r.length ) return a; }), arguments );
|
$.grep(this.cur,function(a){return a != t;});
|
(function(){ var b = navigator.userAgent.toLowerCase(); $.browser = ( /webkit/.test(b) && "safari" ) || ( /opera/.test(b) && "opera" ) || ( /msie/.test(b) && "msie" ) || ( !/compatible/.test(b) && "mozilla" ) || "other"; $.boxModel = ( $.browser != "msie" || document.compatMode == "CSS1Compat" ); })();
|
$.grep(this.cur,function(a){return a != t;});
|
"~", function(a){ var r = []; var s = jQuery.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r[r.length] = s[i]; return r; }
|
$.swap( e, old, function() { if (jQuery.css(e,"display") != 'none') { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else $.swap( e, { visibility: 'hidden', position: 'absolute', display: '' }, function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; }); });
|
"~", function(a){ var r = []; var s = jQuery.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r[r.length] = s[i]; return r; }
|
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 ); };
|
function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; });
|
jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); };
|
"~", function(a){ var r = []; var s = jQuery.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r.push( s[i] ); return r; }
|
jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); };
|
$('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); });
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass); $.ajax({ type: "GET", url: "data/name.php?wait=5", error: pass, success: fail }); });
|
$('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); });
|
$('math', xml).each(function() {
|
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() {
|
$('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); });
|
start(); }); });
|
$('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); });
|
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass); $.ajax({ type: "GET", url: "data/name.php?wait=5", error: pass, success: fail }); });
|
$('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); });
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass); $.ajax({ type: "GET", url: "data/name.php?wait=5", error: pass, success: fail });});
|
jQuery.fn[ i ] = function(h) {
|
jQuery.fn[ n ] = function(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 ); }; });
|
jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ n ] = function(h) {
|
jQuery.fn[ i ] = function(h) {
|
jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); }; });
|
( 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[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); }; });
|
});
|
jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); }; });
|
|
jQuery.fn[ i ] = function(h) {
|
jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ n ] = function(h) {
|
jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); };
|
this.length ? this[0][n] : null : this.attr( n, h );
|
( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h );
|
jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); };
|
jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h );
|
jQuery.fn[ n ] = function(num,fn) { return this.filter( ":" + n + "(" + num + ")", fn );
|
jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); }; });
|
.replace(/-([a-z])/ig,function(z,b){ return b.toUpperCase(); });
|
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; }); });
|
.replace(/-([a-z])/ig,function(z,b){ return b.toUpperCase(); });
|
jQuery.grep(this,function(a){ return a != t; }), arguments );
|
return this.each(function(){ var obj = this; if ( this.nodeName == "TABLE" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } fn.apply( obj ); });
|
jQuery.grep(this,function(a){ return a != t; }), arguments );
|
for ( var k in self ) {(function(j){ try { if ( !$a[j] ) $a[j] = function() { return $.apply(self,self[j],arguments); }; } catch(e) {} })(k);}
|
"~", function(a){ var r = []; var s = $.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r[r.length] = s[i]; return r; }
|
for ( var k in self ) {(function(j){ try { if ( !$a[j] ) $a[j] = function() { return $.apply(self,self[j],arguments); }; } catch(e) {} })(k);}
|
a = a.replace(r,function(z,b){return b.toUpperCase();});
|
function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; });
|
a = a.replace(r,function(z,b){return b.toUpperCase();});
|
p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
|
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; }); });
|
p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass);
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50);
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass); $.ajax({ type: "GET", url: "data/name.php?wait=5", error: pass, success: fail });});
|
url: "data/name.php?wait=5", error: pass, success: fail
|
timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' ); start(); }
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass); $.ajax({ type: "GET", url: "data/name.php?wait=5", error: pass, success: fail });});
|
$.ajaxTimeout(0);
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass); $.ajax({ type: "GET", url: "data/name.php?wait=5", error: pass, success: fail });});
|
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass); $.ajax({ type: "GET", url: "data/name.php?wait=5", error: pass, success: fail
|
$.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();
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass); $.ajax({ type: "GET", url: "data/name.php?wait=5", error: pass, success: fail });});
|
});
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass); $.ajax({ type: "GET", url: "data/name.php?wait=5", error: pass, success: fail });});
|
|
return this.select(function(value) { return !values.include(value);
|
return this.inject([], function(array, value) { return array.concat(value.constructor == Array ? value.flatten() : [value]);
|
return this.select(function(value) { return !values.include(value); });
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50);
|
test("$.ajaxTimeout(Number) - with global timeout", function() { stop(); var passed = 0; var timeout; $.ajaxTimeout(1000); var pass = function() { passed++; if(passed == 2) { ok( true, 'Check local and global callbacks after timeout' ); clearTimeout(timeout); $('#main').unbind("ajaxError"); start(); } }; var fail = function() { ok( false, 'Check for timeout failed' ); start(); }; timeout = setTimeout(fail, 1500); $('#main').ajaxError(pass);
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50); $.ajax({ type: "GET", timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' ); start(); } }); // reset timeout $.ajaxTimeout(0);});
|
timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' ); start(); }
|
url: "data/name.php?wait=5", error: pass, success: fail
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50); $.ajax({ type: "GET", timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' ); start(); } }); // reset timeout $.ajaxTimeout(0);});
|
$.ajaxTimeout(0);
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50); $.ajax({ type: "GET", timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' ); start(); } }); // reset timeout $.ajaxTimeout(0);});
|
|
.replace(/-([a-z])/ig,function(z,b){ return b.toUpperCase(); });
|
function(a,f) {return jQuery.grep(a,f,true);};
|
.replace(/-([a-z])/ig,function(z,b){ return b.toUpperCase(); });
|
jQuery.fn[ i ] = function(h) {
|
jQuery.fn[ n ] = function(h) {
|
jQuery.fn[ i ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); };
|
jQuery.fn[ n ] = function(h) {
|
jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ n ] = function(h) {
|
jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); };
|
});
|
jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); };
|
|
function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; });
|
p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
|
function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; });
|
jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ n ] = function(h) {
|
jQuery.fn[ n ] = function(h) {
|
jQuery.each( jQuery.macros.css, function(i,n){ jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); }; });
|
jQuery.fn[ n ] = function(h) {
|
jQuery.each( jQuery.macros.attr, function(i,n){ n = n || i; jQuery.fn[ i ] = function(h) {
|
jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); };
|
( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h );
|
this.length ? this[0][n] : null : this.attr( n, h );
|
jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); };
|
function(a,f) {return jQuery.grep(a,f,true);};
|
function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; });
|
function(a,f) {return jQuery.grep(a,f,true);};
|
return this.each(function(){ var obj = this; if ( this.nodeName == "TABLE" ) { var tbody = this.getElementsByTagName("tbody");
|
(function(){ var b = navigator.userAgent.toLowerCase();
|
return this.each(function(){ var obj = this; if ( this.nodeName == "TABLE" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } fn.apply( obj ); });
|
if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } fn.apply( obj ); });
|
jQuery.browser = ( /webkit/.test(b) && "safari" ) || ( /opera/.test(b) && "opera" ) || ( /msie/.test(b) && "msie" ) || ( !/compatible/.test(b) && "mozilla" ) || "other"; jQuery.boxModel = ( jQuery.browser != "msie" || document.compatMode == "CSS1Compat" ); })();
|
return this.each(function(){ var obj = this; if ( this.nodeName == "TABLE" ) { var tbody = this.getElementsByTagName("tbody"); if ( !tbody.length ) { obj = document.createElement("tbody"); this.appendChild( obj ); } else obj = tbody[0]; } fn.apply( obj ); });
|
$a[j] = function() { return $.apply(self,self[j],arguments); };
|
a = a.replace(r,function(z,b){return b.toUpperCase();});
|
$a[j] = function() { return $.apply(self,self[j],arguments); };
|
jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); };
|
"~", function(a){ var r = []; var s = jQuery.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r.push( s[i] ); return r; }
|
jQuery.fn[ n ] = function(h) { return h == undefined ? ( this.length ? jQuery.css( this[0], n ) : null ) : this.css( n, h ); };
|
var t = jQuery.grep(jQuery.sibling(a),function(b){ return b.nodeName == a.nodeName; });
|
"~", function(a){ var r = []; var s = jQuery.sibling(a); if ( s.n > 0 ) for ( var i = s.n; i < s.length; i++ ) r[r.length] = s[i]; return r; }
|
var t = jQuery.grep(jQuery.sibling(a),function(b){ return b.nodeName == a.nodeName; });
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50);
|
test("$.ajax - simple get", function() { expect(1); stop();
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50); $.ajax({ type: "GET", timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' ); start(); } }); // reset timeout $.ajaxTimeout(0);});
|
timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' );
|
url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' );
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50); $.ajax({ type: "GET", timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' ); start(); } }); // reset timeout $.ajaxTimeout(0);});
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50); $.ajax({ type: "GET", timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' ); start(); } }); $.ajaxTimeout(0); });
|
$('math', xml).each(function() { ok( $('calculation', this).text() == '5-2', 'Check for XML' ); ok( $('result', this).text() == '3', 'Check for XML' ); });
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50); $.ajax({ type: "GET", timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' ); start(); } }); // reset timeout $.ajaxTimeout(0);});
|
test("$.ajax - simple get", function() { expect(1); stop();
|
test("$.ajaxTimeout(Number) with localtimeout", function() { stop(); $.ajaxTimeout(50);
|
test("$.ajax - simple get", function() { expect(1); stop(); $.ajax({ type: "GET", url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' ); start(); } });});
|
url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' );
|
timeout: 5000, url: "data/name.php?wait=1", error: function() { ok( false, 'Check for local timeout failed' ); start(); }, success: function() { ok( true, 'Check for local timeout' );
|
test("$.ajax - simple get", function() { expect(1); stop(); $.ajax({ type: "GET", url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' ); start(); } });});
|
$.ajaxTimeout(0);
|
test("$.ajax - simple get", function() { expect(1); stop(); $.ajax({ type: "GET", url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' ); start(); } });});
|
|
e = jQuery(e.cloneNode(true)).css({ visibility: "hidden", position: "absolute", display: "block", right: "0", left: "0" }).appendTo(e.parentNode)[0];
|
e = jQuery(e.cloneNode(true)) .find(":radio").removeAttr("checked").end() .css({ visibility: "hidden", position: "absolute", display: "block", right: "0", left: "0" }).appendTo(e.parentNode)[0];
|
jQuery.swap( e, old, function() { if (jQuery.css(e,"display") != "none") { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else { e = jQuery(e.cloneNode(true)).css({ visibility: "hidden", position: "absolute", display: "block", right: "0", left: "0" }).appendTo(e.parentNode)[0]; var parPos = jQuery.css(e.parentNode,"position"); if ( parPos == "" || parPos == "static" ) e.parentNode.style.position = "relative"; oHeight = e.clientHeight; oWidth = e.clientWidth; if ( parPos == "" || parPos == "static" ) e.parentNode.style.position = "static"; e.parentNode.removeChild(e); } });
|
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[ n ] = 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; }); });
|
r = $.map( ret, function(a){ return a.parentNode; } );
|
(function(){ var b = navigator.userAgent.toLowerCase(); $.browser = ( /safari/.test(b) && "safari" ) || ( /opera/.test(b) && "opera" ) || ( /msie/.test(b) && "msie" ) || ( !/compatible/.test(b) && "mozilla" ) || "other"; })();
|
r = $.map( ret, function(a){ return a.parentNode; } );
|
jQuery.fn[ n ] = 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 { e = jQuery(e.cloneNode(true)).css({ visibility: "hidden", position: "absolute", display: "block", right: "0", left: "0" }).appendTo(e.parentNode)[0]; var parPos = jQuery.css(e.parentNode,"position"); if ( parPos == "" || parPos == "static" ) e.parentNode.style.position = "relative"; oHeight = e.clientHeight; oWidth = e.clientWidth; if ( parPos == "" || parPos == "static" ) e.parentNode.style.position = "static"; e.parentNode.removeChild(e); } });
|
jQuery.fn[ n ] = 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 { e = jQuery(e.cloneNode(true)).css({ visibility: "hidden", position: "absolute", display: "block", right: "0", left: "0" }).appendTo(e.parentNode)[0]; var parPos = jQuery.css(e.parentNode,"position"); if ( parPos == "" || parPos == "static" ) e.parentNode.style.position = "relative"; oHeight = e.clientHeight; oWidth = e.clientWidth; if ( parPos == "" || parPos == "static" ) e.parentNode.style.position = "static"; e.parentNode.removeChild(e); } });
|
jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); };
|
jQuery.swap( e, old, function() { if (jQuery.css(e,"display") != "none") { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else { e = jQuery(e.cloneNode(true)).css({ visibility: "hidden", position: "absolute", display: "block", right: "0", left: "0" }).appendTo(e.parentNode)[0]; var parPos = jQuery.css(e.parentNode,"position"); if ( parPos == "" || parPos == "static" ) e.parentNode.style.position = "relative"; oHeight = e.clientHeight; oWidth = e.clientWidth; if ( parPos == "" || parPos == "static" ) e.parentNode.style.position = "static"; e.parentNode.removeChild(e); } });
|
(function(){ var b = navigator.userAgent.toLowerCase(); jQuery.browser = ( /webkit/.test(b) && "safari" ) || ( /opera/.test(b) && "opera" ) || ( /msie/.test(b) && "msie" ) || ( !/compatible/.test(b) && "mozilla" ) || "other"; jQuery.boxModel = ( jQuery.browser != "msie" || document.compatMode == "CSS1Compat" ); })();
|
$.swap( e, old, function() { if (jQuery.css(e,"display") != 'none') { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else $.swap( e, { visibility: 'hidden', position: 'absolute', display: '' }, function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; }); });
|
(function(){ var b = navigator.userAgent.toLowerCase(); // Figure out what browser is being used jQuery.browser = ( /webkit/.test(b) && "safari" ) || ( /opera/.test(b) && "opera" ) || ( /msie/.test(b) && "msie" ) || ( !/compatible/.test(b) && "mozilla" ) || "other"; // Check to see if the W3C box model is being used jQuery.boxModel = ( jQuery.browser != "msie" || document.compatMode == "CSS1Compat" );})();
|
(function(){ var b = navigator.userAgent.toLowerCase(); $.browser = ( /webkit/.test(b) && "safari" ) || ( /opera/.test(b) && "opera" ) || ( /msie/.test(b) && "msie" ) || ( !/compatible/.test(b) && "mozilla" ) || "other"; $.boxModel = ( $.browser != "msie" || document.compatMode == "CSS1Compat" ); })();
|
var t = $.grep($.sibling(a),function(b){ return b.nodeName == a.nodeName; });
|
(function(){ var b = navigator.userAgent.toLowerCase(); // Figure out what browser is being used $.browser = ( /webkit/.test(b) && "safari" ) || ( /opera/.test(b) && "opera" ) || ( /msie/.test(b) && "msie" ) || ( !/compatible/.test(b) && "mozilla" ) || "other"; // Check to see if the W3C box model is being used $.boxModel = ( $.browser != "msie" || document.compatMode == "CSS1Compat" );})();
|
} else jQuery.swap( e, { visibility: "hidden", position: "absolute", display: "block" }, function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; });
|
} else { e = $(e.cloneNode(true)).css({ visibility: "hidden", position: "absolute", display: "block" }).prependTo("body")[0]; oHeight = e.clientHeight; oWidth = e.clientWidth; e.parentNode.removeChild(e); }
|
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: "block" }, function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; }); });
|
jQuery.swap( e, old, function() { if (jQuery.css(e,"display") != "none") { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else { e = $(e.cloneNode(true)).css({ visibility: "hidden", position: "absolute", display: "block" }).prependTo("body")[0]; oHeight = e.clientHeight; oWidth = e.clientWidth; e.parentNode.removeChild(e); } });
|
jQuery.grep( elem.className.split(/\s+/), function(cur){ return !jQuery.className.has( c, cur ); }).join(' ') : "";
|
jQuery.swap( e, old, function() { if (jQuery.css(e,"display") != "none") { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else { e = $(e.cloneNode(true)).css({ visibility: "hidden", position: "absolute", display: "block" }).prependTo("body")[0]; oHeight = e.clientHeight; oWidth = e.clientWidth; e.parentNode.removeChild(e); } });
|
jQuery.swap( e, { visibility: "hidden", position: "absolute", display: "" },
|
jQuery.swap( e, { visibility: "hidden", position: "absolute", display: "block" },
|
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; }); });
|
visibility: "hidden", position: "absolute", display: "block"
|
visibility: "hidden", position: "absolute", display: "block", right: "0", left: "0"
|
jQuery.swap( e, old, function() { if (jQuery.css(e,"display") != "none") { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else { e = jQuery(e.cloneNode(true)).css({ visibility: "hidden", position: "absolute", display: "block" }).appendTo(e.parentNode)[0]; oHeight = e.clientHeight; oWidth = e.clientWidth; e.parentNode.removeChild(e); } });
|
if ( parPos == "" || parPos == "static" ) e.parentNode.style.position = "static";
|
jQuery.swap( e, old, function() { if (jQuery.css(e,"display") != "none") { oHeight = e.offsetHeight; oWidth = e.offsetWidth; } else { e = jQuery(e.cloneNode(true)).css({ visibility: "hidden", position: "absolute", display: "block" }).appendTo(e.parentNode)[0]; oHeight = e.clientHeight; oWidth = e.clientWidth; e.parentNode.removeChild(e); } });
|
|
.replace(/-([a-z])/ig,function(z,b){ return b.toUpperCase(); });
|
p = p.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});
|
.replace(/-([a-z])/ig,function(z,b){ return b.toUpperCase(); });
|
test("$.ajax - simple get", function() {
|
test("$.ajax - simple post", function() {
|
test("$.ajax - simple get", function() { expect(1); stop(); $.ajax({ type: "GET", url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' ); start(); } });});
|
type: "GET", url: "data/name.php?name=foo",
|
type: "POST", url: "data/name.php", data: "name=peter",
|
test("$.ajax - simple get", function() { expect(1); stop(); $.ajax({ type: "GET", url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' ); start(); } });});
|
ok( msg == 'bar', 'Check for GET' );
|
ok( msg == 'pan', 'Check for POST' );
|
test("$.ajax - simple get", function() { expect(1); stop(); $.ajax({ type: "GET", url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' ); start(); } });});
|
test("$.ajax - simple get", function() { expect(1);
|
test("$.ajaxTimeout(Number) - with global timeout", function() {
|
test("$.ajax - simple get", function() { expect(1); stop(); $.ajax({ type: "GET", url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' ); start(); } });});
|
url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' ); start(); }
|
url: "data/name.php?wait=5", error: pass, success: fail
|
test("$.ajax - simple get", function() { expect(1); stop(); $.ajax({ type: "GET", url: "data/name.php?name=foo", success: function(msg){ ok( msg == 'bar', 'Check for GET' ); start(); } });});
|
test("filter(String)", function() { isSet( $("input").filter(":checked").get(), q("radio2", "check1"), "Filter elements" );
|
test("filter()", function() { isSet( $("input").filter(":checked").get(), q("radio2", "check1"), "filter(String)" ); isSet( $("p").filter(["#ap", "#sndp"]).get(), q("ap", "sndp"), "filter(Array<String>)" );
|
test("filter(String)", function() { isSet( $("input").filter(":checked").get(), q("radio2", "check1"), "Filter elements" );});
|
test("$.ajax - simple post", function() {
|
test("$.ajax - simple get", function() {
|
test("$.ajax - simple post", function() { expect(1); stop(); $.ajax({ type: "POST", url: "data/name.php", data: "name=peter", success: function(msg){ ok( msg == 'pan', 'Check for POST' ); start(); } });});
|
type: "POST", url: "data/name.php", data: "name=peter",
|
type: "GET", url: "data/name.php?name=foo",
|
test("$.ajax - simple post", function() { expect(1); stop(); $.ajax({ type: "POST", url: "data/name.php", data: "name=peter", success: function(msg){ ok( msg == 'pan', 'Check for POST' ); start(); } });});
|
ok( msg == 'pan', 'Check for POST' );
|
ok( msg == 'bar', 'Check for GET' );
|
test("$.ajax - simple post", function() { expect(1); stop(); $.ajax({ type: "POST", url: "data/name.php", data: "name=peter", success: function(msg){ ok( msg == 'pan', 'Check for POST' ); start(); } });});
|
var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();});
|
jQuery.swap(elem, { display: 'block' }, function() { var c = document.defaultView.getComputedStyle(this, ''); ret = c && c.getPropertyValue(prop) || ''; });
|
var newProp = prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase();});
|
function(){
|
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(){
|
function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; });
|
});
|
function(){ oHeight = e.clientHeight; oWidth = e.clientWidth; });
|
|
r = $.map( ret, function(a){ return ( a.childNodes.length > 0 ? $.sibling( a.firstChild ) : null ); } );
|
r = $.map( ret, function(a){ return a.parentNode; } );
|
r = $.map( ret, function(a){ return ( a.childNodes.length > 0 ? $.sibling( a.firstChild ) : null ); } );
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.