X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2Fjquery.js;h=ac263bcedff45b0fc35822e2437c8ed37d8a37ff;hb=43d3deb7c81fb4bd35a7f98c5f01f5f653b4c5a2;hp=c3185bb5331c38080dbfd6dbed597f082bf13cf7;hpb=df11c1b76c8a0213be031d23d81e10ec4c28e658;p=jquery.git diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index c3185bb..ac263bc 100644 --- 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; - 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 ) { @@ -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