mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Added fix for bug #175; Added docs for extend(Object), for any plugin developer API docs to come
This commit is contained in:
parent
df11c1b76c
commit
43d3deb7c8
17
src/jquery/jquery.js
vendored
17
src/jquery/jquery.js
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user