From adc14c957c4e0018a468986b7bc828b894ec6e13 Mon Sep 17 00:00:00 2001 From: ekhaled Date: Tue, 3 May 2011 12:03:13 +0100 Subject: [PATCH] Documentation update --- README.rdoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.rdoc b/README.rdoc index 8e8627ef0..54e426372 100644 --- a/README.rdoc +++ b/README.rdoc @@ -89,9 +89,12 @@ Context and .find calls are equivalent: css('css property'): get this CSS property of the first element, looks at both .style object properties and the computed style addClass('classname'): adds a CSS class name + addClass(function(index, existingClasses){ return ...; }): adds a CSS class name from a method removeClass('classname'): removes a CSS class name + removeClass(function(index, existingClasses){ return ...; }): removes a CSS class name from a method hasClass('classname'): returns true of first element has a classname set toggleClass('classname'[, switch]): adds/removes class, or adds/removes it when switch == true/false + toggleClass(function(index, existingClasses){ return ...; }): adds/removes class from a method bind(type, function): add an event listener (see below) one(type, function): add an event listener that only fires once