git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
df11c1b
)
Added fix for bug #175; Added docs for extend(Object), for any plugin developer API...
author
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Sat, 16 Sep 2006 15:41:07 +0000
(15:41 +0000)
committer
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Sat, 16 Sep 2006 15:41:07 +0000
(15:41 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
c3185bb
..
ac263bc
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-1171,7
+1171,7
@@
jQuery.fn = jQuery.prototype = {
return this.each(function(){
var obj = this;
return this.each(function(){
var obj = this;
- if ( table && this.nodeName == "TABLE" && a[0].nodeName != "THEAD" ) {
+ if ( table && this.nodeName.toUpperCase() == "TABLE" && a[0].nodeName.toUpperCase() != "THEAD" ) {
var tbody = this.getElementsByTagName("tbody");
if ( !tbody.length ) {
var tbody = this.getElementsByTagName("tbody");
if ( !tbody.length ) {
@@
-1218,7
+1218,20
@@
jQuery.fn = jQuery.prototype = {
};
/**
};
/**
- *
+ * Extends the jQuery object itself. Can be used to add both static
+ * functions and plugin methods.
+ *
+ * @example $.fn.extend({
+ * check: function() {
+ * this.each(function() { this.checked = true; });
+ * ),
+ * uncheck: function() {
+ * this.each(function() { this.checked = false; });
+ * }
+ * });
+ * $("input[@type=checkbox]").check();
+ * $("input[@type=radio]").uncheck();
+ * @desc Adds two plugin methods.
*
* @private
* @name extend
*
* @private
* @name extend