Fixed a few docs

This commit is contained in:
Jörn Zaefferer 2007-01-14 15:47:32 +00:00
parent 213118c81e
commit 2b82ffbbfa
2 changed files with 12 additions and 13 deletions

23
src/jquery/jquery.js vendored
View file

@ -915,7 +915,7 @@ jQuery.fn = jQuery.prototype = {
* *
* @name not * @name not
* @type jQuery * @type jQuery
* @param Array|jQuery elems A set of elements to remove from the jQuery set of matched elements. * @param jQuery elems A set of elements to remove from the jQuery set of matched elements.
* @cat DOM/Traversing * @cat DOM/Traversing
*/ */
not: function(t) { not: function(t) {
@ -932,11 +932,11 @@ jQuery.fn = jQuery.prototype = {
}, },
/** /**
* Adds the elements matched by the expression to the jQuery object. This * Adds more elements, matched by the given expression,
* can be used to concatenate the result sets of two expressions. * to the set of matched elements.
* *
* @example $("p").add("span") * @example $("p").add("span")
* @before <p>Hello</p><p><span>Hello Again</span></p> * @before <p>Hello</p><span>Hello Again</span>
* @result [ <p>Hello</p>, <span>Hello Again</span> ] * @result [ <p>Hello</p>, <span>Hello Again</span> ]
* *
* @name add * @name add
@ -946,7 +946,8 @@ jQuery.fn = jQuery.prototype = {
*/ */
/** /**
* Adds the on the fly created elements to the jQuery object. * Adds more elements, created on the fly, to the set of
* matched elements.
* *
* @example $("p").add("<span>Again</span>") * @example $("p").add("<span>Again</span>")
* @before <p>Hello</p> * @before <p>Hello</p>
@ -961,15 +962,13 @@ jQuery.fn = jQuery.prototype = {
/** /**
* Adds one or more Elements to the set of matched elements. * Adds one or more Elements to the set of matched elements.
* *
* This is used to add a set of Elements to a jQuery object.
*
* @example $("p").add( document.getElementById("a") ) * @example $("p").add( document.getElementById("a") )
* @before <p>Hello</p><p><span id="a">Hello Again</span></p> * @before <p>Hello</p><p><span id="a">Hello Again</span></p>
* @result [ <p>Hello</p>, <span id="a">Hello Again</span> ] * @result [ <p>Hello</p>, <span id="a">Hello Again</span> ]
* *
* @example $("p").add([document.getElementById("a"), document.getElementById("b")]) * @example $("p").add( document.forms[0].elements )
* @before <p>Hello</p><p><span id="a">Hello Again</span><span id="b">And Again</span></p> * @before <p>Hello</p><p><form><input/><button/></form>
* @result [ <p>Hello</p>, <span id="a">Hello Again</span>, <span id="b">And Again</span> ] * @result [ <p>Hello</p>, <input/>, <button/> ]
* *
* @name add * @name add
* @type jQuery * @type jQuery
@ -2184,7 +2183,7 @@ jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){
* *
* @name width * @name width
* @type jQuery * @type jQuery
* @param Number|String val Set the CSS property to the specified value. * @param String|Number val Set the CSS property to the specified value.
* @cat CSS * @cat CSS
*/ */
@ -2214,7 +2213,7 @@ jQuery.each( [ "eq", "lt", "gt", "contains" ], function(i,n){
* *
* @name height * @name height
* @type jQuery * @type jQuery
* @param Number|String val Set the CSS property to the specified value. * @param String|Number val Set the CSS property to the specified value.
* @cat CSS * @cat CSS
*/ */

View file

@ -405,7 +405,7 @@ jQuery.extend({
* @name $.nth * @name $.nth
* @type DOMElement * @type DOMElement
* @param DOMElement cur The element to search from. * @param DOMElement cur The element to search from.
* @param Number|String num The Nth result to match. Can be a number or a string (like 'even' or 'odd'). * @param String|Number num The Nth result to match. Can be a number or a string (like 'even' or 'odd').
* @param String dir The direction to move in (pass in something like 'previousSibling' or 'nextSibling'). * @param String dir The direction to move in (pass in something like 'previousSibling' or 'nextSibling').
* @cat DOM/Traversing * @cat DOM/Traversing
*/ */