fixed an error in docs...

This commit is contained in:
Alex A. Naanou 2013-02-10 03:05:15 +04:00
parent f4be51c97b
commit 539cfde7a4

View File

@ -19,7 +19,7 @@
//
// elem is a jquery compatible object; default use-case: a css selector.
//
// if class_list is a list, the resulting function understands the
// if class_list is a string, the resulting function understands the
// folowing arguments:
// - <index> : 0 for 'off' and 1 for 'on' (see below)
// - 'on' : switch mode on -- add class
@ -27,7 +27,7 @@
// - '?' : return current state ('on'|'off')
// - no arguments : toggle the state
//
// otherwise:
// otherwise, if class_list is a list of strings:
// - <index> : explicitly set the state to index in class_list
// - <class-name> : explicitly set a class from the list
// - '?' : return current state ('on'|'off')