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:
5f4f247
)
Improved docs for removeClass (optional parameter, removes all classes if not specified)
author
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Fri, 29 Dec 2006 17:51:40 +0000
(17:51 +0000)
committer
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Fri, 29 Dec 2006 17:51:40 +0000
(17:51 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
2ce32e1
..
88930f2
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-3098,15
+3098,19
@@
jQuery.macros = {
},
/**
},
/**
- * Removes the specified class from the set of matched elements.
+ * Removes all or the specified class from the set of matched elements.
*
*
- * @example $("p").removeClass("selected")
+ * @example $("p").removeClass()
* @before <p class="selected">Hello</p>
* @result [ <p>Hello</p> ]
*
* @before <p class="selected">Hello</p>
* @result [ <p>Hello</p> ]
*
+ * @example $("p").removeClass("selected")
+ * @before <p class="selected first">Hello</p>
+ * @result [ <p class="first">Hello</p> ]
+ *
* @name removeClass
* @type jQuery
* @name removeClass
* @type jQuery
- * @param String class A CSS class to remove from the elements
+ * @param String class (optional) A CSS class to remove from the elements
* @cat DOM
*/
removeClass: function(c){
* @cat DOM
*/
removeClass: function(c){