rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
});
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 ); }; });
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() { if($(this).is(expr)) { ifCallback.apply(this); } else { elseCallback.apply(this); } });
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 = 0; i < a.length; i++ ) $(a[i])[n]( this );
for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this );
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); }); }; });
if ( a ) ret = jQuery.filter(a,ret).r;
if ( a && a.constructor == String ) ret = jQuery.filter(a,ret).r;
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.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++ ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], 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 ); });
for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){
z[j] = function(a,b){
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 j = 0; j < a.length; j++ )
for ( var j = 0, al = a.length; j < al; j++ )
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); }; });
z[j] = function(a,b){
for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){
z[j] = function(a,b){ if(c(a,b,"height")) { h[j](); } if(c(a,b,"width")) { w[j](); } };
})();}
z[j] = function(a,b){ if(c(a,b,"height")) { h[j](); } if(c(a,b,"width")) { w[j](); } };
test("$.getScript(String, Function) - with callback", function() { expect(2); stop(); $.getScript("data/test.js", function() {
$.getScript("data/test.js", function() {
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);
test("$.getIfModified(String, Hash, Function)", function() { expect(1);
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); });});
$.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); });});
m.addEventListener("command", function() { loadOneOrMoreURIs(urls.join("|")); }, false);
m.addEventListener("command", function() { for (var i = 0; i < keys.length; i++) undoCloseTab(); }, false);
m.addEventListener("command", function() { loadOneOrMoreURIs(urls.join("|")); }, false);
return this.each(function(){ if ( !f && this.nodeName == 'IMG' && !this.offsetWidth && !this.offsetHeight ) { var self = this; setTimeout(function(){ $(self).center(true); }, 13); } else { var s = this.style; var p = this.parentNode; if ( $.css(p,"position") == 'static' ) p.style.position = 'relative'; s.position = 'absolute'; s.left = parseInt(($.css(p,"width") - $.css(this,"width"))/2) + "px"; s.top = parseInt(($.css(p,"height") - $.css(this,"height"))/2) + "px"; } });
for(var i in fx.fn){(function(){ var j = fx.fn[i]; z[j] = function(a,b){p[j]();r[j](a,b);}; })()}
return this.each(function(){ if ( !f && this.nodeName == 'IMG' && !this.offsetWidth && !this.offsetHeight ) { var self = this; setTimeout(function(){ $(self).center(true); }, 13); } else { var s = this.style; var p = this.parentNode; if ( $.css(p,"position") == 'static' ) p.style.position = 'relative'; s.position = 'absolute'; s.left = parseInt(($.css(p,"width") - $.css(this,"width"))/2) + "px"; s.top = parseInt(($.css(p,"height") - $.css(this,"height"))/2) + "px"; } });
$.getScript("data/test.js", function() {
test("$.getScript(String, Function) - with callback", function() { expect(2); stop(); $.getScript("data/test.js", function() {
$.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); });
});
$.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); });
var args = arguments; return this.each(function(){ n.apply( this, args ); });
return this.each( n, arguments );
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 ); }); }; }
}
};
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 ); }); }; }
setTimeout(function () { gBrowser.selectedBrowser.focus(); }, 100);
function (event) { FeedHandler.onLinkAdded(event); },
setTimeout(function () { gBrowser.selectedBrowser.focus(); }, 100);
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); });
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.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); }); }; });
});
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); }); }; });
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 ); }); }; };
jQuery.fn[ n + "To" ] = function(){ var a = arguments; return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); }); };
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 ); }); }; };
for ( var i in a )
for ( var i = 0; i < a.length; i++ )
return this.each(function(){ for ( var i in a ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this ); });
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.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); });
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.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); };
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] ] ); }
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); }; });
start();
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' ); start(); });});
for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this );
for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this );
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); }); };
for ( var i in each ) new function() { var n = each[i]; jQuery.fn[ i ] = function() { return this.each( n, arguments );
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 ); });
for ( var i in each ) new function() { var n = each[i]; jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; };
for ( var i = 0; i < a.length; i++ ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this ); });
for ( var i = a.length - 1; i >= 0; i-- ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this.nextSibling ); });
return this.each(function(){ for ( var i = 0; i < a.length; i++ ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this ); });
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){p[j]();r[j](a,b);}; })();}
z[j] = function(a,b){ if(c(a,b,"height")) { h[j](); } if(c(a,b,"width")) { w[j](); } };
for ( var j = 0; j < a.length; j++ )
for ( var j = 0, al = a.length; j < al; j++ )
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); };
for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){p[j]();r[j](a,b);}; })();}
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){p[j]();r[j](a,b);}; })();}
$.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); });
test("$.getScript(String, Function) - no callback", function() { expect(1); stop(); $.getScript("data/test.js"); });
$.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); });
$.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();
$.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); });
setTimeout(function(){ $(self).center(true); }, 13);
z[j] = function(a,b){p[j]();r[j](a,b);};
setTimeout(function(){ $(self).center(true); }, 13);
test("$.getScript(String, Function) - no callback", function() { expect(1); stop(); $.getScript("data/test.js"); });
$.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); });
test("$.getScript(String, Function) - no callback", function() { expect(1); stop(); $.getScript("data/test.js");});
var args = arguments; return this.each(function(){ n.apply( this, args ); });
return this.each( n, arguments );
jQuery.fn[ i ] = function() { var args = arguments; return this.each(function(){ n.apply( this, args ); }); };
function (event) { self.addLiveBookmark(event); }, false);
setTimeout(function () { gBrowser.selectedBrowser.focus(); }, 100);
function (event) { self.addLiveBookmark(event); }, false);
jQuery.fn[ i ] = function(){
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); }); };
});
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); }); };
jQuery.fn[ n + "To" ] = function(){ var a = arguments; return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); }); };
return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); });
jQuery.fn[ n + "To" ] = function(){ var a = arguments; return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); }); };
$(a[j])[n]( this );
jQuery(a[j])[n]( this );
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); }); }; });
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){
jQuery.fn[ i ] = function(){
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); }; });
});
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); }; });
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); });
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 );
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); };
});
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); };
start();
setTimeout(start, 100);
$.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); start(); });
for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this );
for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this );
return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); });
jQuery.fn[ i ] = function() { return this.each( n, arguments );
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() { return this.each( n, arguments ); };
for ( var i = a.length - 1; i >= 0; i-- ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this.nextSibling ); });
while ( this.firstChild ) this.removeChild( this.firstChild ); });
return this.each(function(){ for ( var i = a.length - 1; i >= 0; i-- ) this.parentNode.insertBefore( clone ? a[i].cloneNode(true) : a[i], this.nextSibling ); });
for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){p[j]();r[j](a,b);}; })();}
z[j] = function(a,b){p[j]();r[j](a,b);};
for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){p[j]();r[j](a,b);}; })();}
for ( var j = 0; j < a.length; j++ )
for ( var j = 0, al = a.length; j < al; j++ )
return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); });
z[j] = function(a,b){p[j]();r[j](a,b);};
for(var i in $.fx.fn){(function(){ var j = $.fx.fn[i]; z[j] = function(a,b){p[j]();r[j](a,b);}; })();}
z[j] = function(a,b){p[j]();r[j](a,b);};
test("$.getScript(String, Function) - no callback", function() { expect(1);
test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4);
test("$.getScript(String, Function) - no callback", function() { expect(1); stop(); $.getScript("data/test.js");});
$.getScript("data/test.js");
$.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });
test("$.getScript(String, Function) - no callback", function() { expect(1); stop(); $.getScript("data/test.js");});
test("$.getScript(String, Function) - no callback", function() { expect(1);
test("$.getScript(String, Function) - with callback", function() { expect(2);
test("$.getScript(String, Function) - no callback", function() { expect(1); stop(); $.getScript("data/test.js");});
$.getScript("data/test.js");
$.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100); });
test("$.getScript(String, Function) - no callback", function() { expect(1); stop(); $.getScript("data/test.js");});
test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4);
test("$.getScript(String, Function) - no callback", function() { expect(1);
test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4); stop(); $.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });});
$.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });
$.getScript("data/test.js");
test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4); stop(); $.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });});
return this.each(function(){ n.apply( this, args ); });
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 ); }; }
return this.each(function(){ n.apply( this, args ); });
return this.each(function(){
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){
return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); });
};
return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); });
return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); });
for ( var i in jQuery.macros.each ) new function() { var n = jQuery.macros.each[i]; jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; };
return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); });
$(a[j])[n]( this );
jQuery(a[j])[n]( this );
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); }); };
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){
return this.each(function(){
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); };
};
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); }); };
return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); });
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(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); });
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 ); }; }
return this.each(function(){ for ( var i = 0; i < a.length; i++ ) $(a[i])[n]( this ); });
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 ); }; }
return this.each(function(){ while ( this.firstChild ) this.removeChild( this.firstChild ); });
return this.each(function(){$.event.add(this,t,f);});
return this.each(function(){ while ( this.firstChild ) this.removeChild( this.firstChild ); });
test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4); stop(); $.getJSON("data/json.php", {json: "array"}, function(json) {
$.getJSON("data/json.php", {json: "array"}, function(json) {
test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4); stop(); $.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });});
});
test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4); stop(); $.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });});
test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4); stop(); $.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start();
$.getScript("data/test.js", function() { ok( foobar == "bar", 'Check if script was evaluated' ); setTimeout(start, 100);
test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4); stop(); $.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });});
$.getJSON("data/json.php", {json: "array"}, function(json) {
test("$.getJSON(String, Hash, Function) - JSON array", function() { expect(4); stop(); $.getJSON("data/json.php", {json: "array"}, function(json) {
$.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });
});
$.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });
for ( var i in attr ) new function() { var n = attr[i]; jQuery.fn[ i ] = function(h) {
jQuery.fn[ i ] = function(h) {
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 ); }; }
}
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 ); }; }
jQuery.each( jQuery.macros.each, function(i,n){ jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; });
return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); });
jQuery.each( jQuery.macros.each, function(i,n){ jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; });
for ( var i in each ) new function() { var n = each[i]; jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; };
jQuery.fn[ i ] = function() { return this.each( n, arguments ); };
for ( var i in each ) new function() { var n = each[i]; jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; };
$(a[j])[n]( this );
jQuery(a[j])[n]( this );
return this.each(function(){ for ( var j = 0; j < a.length; j++ ) $(a[j])[n]( this ); });
return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); });
jQuery.each( jQuery.macros.each, function(i,n){ jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; });
return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); });
jQuery.each( jQuery.macros.each, function(i,n){ jQuery.fn[ i ] = function() { return this.each( n, arguments );
jQuery.each( jQuery.macros.to, function(i,n){ jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); });
jQuery.each( jQuery.macros.each, function(i,n){ jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; });
jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h );
for ( var i in each ) new function() { var n = each[i]; jQuery.fn[ i ] = function() { return this.each( n, arguments );
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 ); };
return this.each(function(){$.event.add(this,t,f);});
return this.each(function(){$.event.remove(this,t,f);});
return this.each(function(){$.event.add(this,t,f);});
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.filter, function(i,n){ 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 ); }; });
$.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' );
test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); stop(); $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' );
$.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });
$.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });
test("$.getScript(String, Function) - no callback", function() { expect(1); stop(); $.getScript("data/test.js"); });
$.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' ); start(); });
test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); stop(); $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' );
$.getJSON("data/json.php", {json: "array"}, function(json) { ok( json[0].name == 'John', 'Check JSON: first, name' ); ok( json[0].age == 21, 'Check JSON: first, age' ); ok( json[1].name == 'Peter', 'Check JSON: second, name' ); ok( json[1].age == 25, 'Check JSON: second, age' );
test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); stop(); $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); });});
});
test("$.getJSON(String, Hash, Function) - JSON object", function() { expect(2); stop(); $.getJSON("data/json.php", function(json) { ok( json.data.lang == 'en', 'Check JSON: lang' ); ok( json.data.length == 25, 'Check JSON: length' ); start(); });});
jQuery.fn[ i ] = function(h) {
for ( var i in css ) new function() { var n = css[i]; jQuery.fn[ i ] = 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.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); };
jQuery.fn[ i ] = function() {
jQuery.each( jQuery.macros.each, function(i,n){ jQuery.fn[ i ] = function() {
jQuery.fn[ i ] = function() { return this.each( n, arguments ); };
});
jQuery.fn[ i ] = function() { return this.each( n, arguments ); };
jQuery.fn[ i ] = function() { return this.each( n, arguments );
for ( var i in jQuery.macros.attr ) new function() { var n = jQuery.macros.attr[i] || i; jQuery.fn[ i ] = function(h) { return h == undefined ? this.length ? this[0][n] : null : this.attr( n, h ); };
jQuery.fn[ i ] = function() { return this.each( n, arguments ); };
jQuery.each( jQuery.macros.each, function(i,n){ jQuery.fn[ i ] = function() {
jQuery.fn[ i ] = function() {
jQuery.each( jQuery.macros.each, function(i,n){ jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; });
});
jQuery.each( jQuery.macros.each, function(i,n){ jQuery.fn[ i ] = function() { return this.each( n, arguments ); }; });
jQuery.fn[ i ] = function() { return this.each( n, arguments );
jQuery.fn[ i ] = function(){ var a = arguments; return this.each(function(){ for ( var j = 0; j < a.length; j++ ) jQuery(a[j])[n]( this ); });
jQuery.fn[ i ] = function() { return this.each( n, arguments ); };
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() { return this.each( n, arguments );
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 ); }; }
}
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 ); }; }