This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert("Loaded!"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NEEDSDOCS no ticket associated | |
https://github.com/jquery/jquery/commit/4e97543 | |
FEATURE (SMALL) SHOULD THIS BE REMOVED BEFORE 1.5.1?? | |
.invert() method on promises | |
returns an inverted promise that is resolved/rejected when the underlying deferred is rejected/resolved) | |
https://github.com/jquery/jquery/commit/e0b1bb8 | |
http://api.jquery.com/extending-ajax/ <-- the code example at the very bottom should be updated to match the new regex | |
#8122 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.fn.textFast = function(text) { | |
if (jQuery.isFunction(text)) { | |
return this.each(function(i) { | |
var self = jQuery(this); | |
self.text(text.call(this, i, self.text())); | |
}); | |
} | |
if (typeof text !== "object" && text !== undefined) { | |
return this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(text)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert( "you got the content-type header right :)" ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All browsers were run on Windows XP SP2 (except IE8 on Windows 7). | |
Missing IE 7 | |
All tests passed (only Opera Mobile has the usual 4 offset failures). | |
Safari 5.0.3 / 4.0.5 / 3.2.3 / 3.1.2 | |
Opera 11.01 / 11 / 10.63 / 10.54 / 10.10 / 9.64 | |
Opera Mobile 10.00 | |
IE 6 / 8 (IE8 was on Windows 7) | |
Firefox 4.0b9 / 3.6.13 / 3.5.11 / 3.0.19 / 2.0.0.20 | |
Fennec 1.1b1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.readyWait += 2; | |
var go = function () { | |
$("#foo").attr("value", " Click me again. So jQuery knows it can be ready "); | |
jQuery.ready(true); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> | |
<title>iframe 2</title> | |
</head> | |
<body> | |
<div>iframe 2</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery nodetype filter - v0.1pre - 11/18/2010 | |
* http://benalman.com/ | |
* | |
* Copyright (c) 2010 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://benalman.com/about/license/ | |
* | |
* Variation by Anton M. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* jQuery Tiny Pub/Sub - v0.3 - 11/4/2010 | |
* http://benalman.com/ | |
* | |
* Copyright (c) 2010 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://benalman.com/about/license/ | |
*/ | |
(function($){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// everyone's new favorite closure pattern: | |
(function(window,document,undefined){ ... })(this,this.document); | |
// when minified: | |
(function(w,d,u){ ... })(this,this.document); | |
// which means all uses of window/document/undefined inside the closure | |
// will be single-lettered, so big gains in minification. | |
// it also will speed up scope chain traversal a tiny tiny little bit. |
NewerOlder