diff --git a/docs/index.html b/docs/index.html index 1edb678d46..b31249964c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,13 +1,13 @@
@@ -143,7 +147,8 @@ jQuery.fn = jQuery.prototype = {
*
* @name get
* @type Element
- * @param Number num Access the element in the numth position.
+ * @param Number num Access the element in the Nth position.
+ * @cat Core
*/
/**
@@ -156,6 +161,7 @@ jQuery.fn = jQuery.prototype = {
* @name get
* @type jQuery
* @param Elements elems An array of elements
+ * @cat Core
*/
get: function( num ) {
// Watch for when an array (of elements) is passed in
@@ -194,6 +200,7 @@ jQuery.fn = jQuery.prototype = {
* @name each
* @type jQuery
* @param Function fn A function to execute
+ * @cat Core
*/
each: function( fn, args ) {
return jQuery.each( this, fn, args );
@@ -211,6 +218,7 @@ jQuery.fn = jQuery.prototype = {
* @name attr
* @type Object
* @param String name The name of the property to access.
+ * @cat DOM
*/
/**
@@ -225,6 +233,7 @@ jQuery.fn = jQuery.prototype = {
* @name attr
* @type jQuery
* @param Hash prop A set of key/value pairs to set as object properties.
+ * @cat DOM
*/
/**
@@ -238,6 +247,7 @@ jQuery.fn = jQuery.prototype = {
* @type jQuery
* @param String key The name of the property to set.
* @param Object value The value to set the property to.
+ * @cat DOM
*/
attr: function( key, value, type ) {
// Check to see if we're setting style values
@@ -276,6 +286,7 @@ jQuery.fn = jQuery.prototype = {
* @name css
* @type Object
* @param String name The name of the property to access.
+ * @cat CSS
*/
/**
@@ -290,6 +301,7 @@ jQuery.fn = jQuery.prototype = {
* @name css
* @type jQuery
* @param Hash prop A set of key/value pairs to set as style properties.
+ * @cat CSS
*/
/**
@@ -303,6 +315,7 @@ jQuery.fn = jQuery.prototype = {
* @type jQuery
* @param String key The name of the property to set.
* @param Object value The value to set the property to.
+ * @cat CSS
*/
css: function( key, value ) {
return this.attr( key, value, "curCSS" );
@@ -319,6 +332,7 @@ jQuery.fn = jQuery.prototype = {
*
* @name text
* @type String
+ * @cat DOM
*/
text: function(e) {
e = e || this;
@@ -352,6 +366,7 @@ jQuery.fn = jQuery.prototype = {
* @any Element elem A DOM element that will be wrapped.
* @any ArrayHello
* @result [Hello
] * * @name addClass * @type jQuery * @param String class A CSS class to add to the elements + * @cat DOM */ addClass: function(c){ jQuery.className.add(this,c); }, /** - * The opposite of addClass. Removes the specified class from the - * set of matched elements. + * Removes the specified class from the set of matched elements. * - * @example ("p").removeClass("selected") + * @example $("p").removeClass("selected") * @beforeHello
* @result [Hello
] * * @name removeClass * @type jQuery * @param String class A CSS class to remove from the elements + * @cat DOM */ removeClass: function(c){ jQuery.className.remove(this,c); }, /** - * Adds the specified class if it is present. Remove it if it is + * Adds the specified class if it is present, removes it if it is * not present. * - * @example ("p").toggleClass("selected") + * @example $("p").toggleClass("selected") * @beforeHello
Hello Again
* @result [Hello
,Hello Again
] * * @name toggleClass * @type jQuery * @param String class A CSS class with which to toggle the elements + * @cat DOM */ toggleClass: function( c ){ jQuery.className[ jQuery.className.has(this,c) ? "remove" : "add" ](this,c); }, /** - * TODO: Document + * Removes all matched elements from the DOM. This does NOT remove them from the + * jQuery object, allowing you to use the matched elements further. + * + * @example $("p").remove(); + * @beforeHello
how areyou?
+ * @result how are + * + * @name remove + * @type jQuery + * @cat DOM/Manipulation + */ + + /** + * Removes only elements (out of the list of matched elements) that match + * the specified jQuery expression. This does NOT remove them from the + * jQuery object, allowing you to use the matched elements further. + * + * @example $("p").remove(".hello"); + * @beforeHello
how areyou?
+ * @result how areyou?
+ * + * @name remove + * @type jQuery + * @param String expr A jQuery expression to filter elements by. + * @cat DOM/Manipulation */ remove: function(a){ if ( !a || jQuery.filter( [this], a ).r ) @@ -2243,12 +2355,13 @@ jQuery.macros = { /** * Removes all child nodes from the set of matched elements. * - * @example ("p").empty() + * @example $("p").empty() * @beforeHello, Person and person
* @result [ ] * * @name empty * @type jQuery + * @cat DOM/Manipulation */ empty: function(){ while ( this.firstChild ) @@ -2279,6 +2392,7 @@ jQuery.macros = { * @type jQuery * @param String type An event type * @param Function fn A function to bind to the event on each of the set of matched elements + * @cat Events */ bind: function( type, fn ) { if ( fn.constructor == String ) @@ -2299,6 +2413,7 @@ jQuery.macros = { * @type jQuery * @param String type An event type * @param Function fn A function to unbind from the event on each of the set of matched elements + * @cat Events */ /** @@ -2312,6 +2427,7 @@ jQuery.macros = { * @name unbind * @type jQuery * @param String type An event type + * @cat Events */ /** @@ -2323,6 +2439,7 @@ jQuery.macros = { * * @name unbind * @type jQuery + * @cat Events */ unbind: function( type, fn ) { jQuery.event.remove( this, type, fn ); @@ -2338,6 +2455,7 @@ jQuery.macros = { * @name trigger * @type jQuery * @param String type An event type to trigger. + * @cat Events */ trigger: function( type, data ) { jQuery.event.trigger( type, data, this );