From 8937e088b6f06a0dbef36348aef5d7c10f3af340 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rn=20Zaefferer?= Date: Fri, 29 Dec 2006 17:51:40 +0000 Subject: [PATCH] Improved docs for removeClass (optional parameter, removes all classes if not specified) --- src/jquery/jquery.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/jquery/jquery.js b/src/jquery/jquery.js index 2ce32e1f6..88930f227 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){ -- 2.39.5