From: Jörn Zaefferer Date: Fri, 29 Dec 2006 17:51:40 +0000 (+0000) Subject: Improved docs for removeClass (optional parameter, removes all classes if not specified) X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=8937e088b6f06a0dbef36348aef5d7c10f3af340;p=jquery.git Improved docs for removeClass (optional parameter, removes all classes if not specified) --- diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 2ce32e1..88930f2 100644 --- 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

Hello

* @result [

Hello

] * + * @example $("p").removeClass("selected") + * @before

Hello

+ * @result [

Hello

] + * * @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){