diff --git a/lib/jli.js b/lib/jli.js index e1c65ca..f6b7e42 100755 --- a/lib/jli.js +++ b/lib/jli.js @@ -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: // - : 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: // - : explicitly set the state to index in class_list // - : explicitly set a class from the list // - '?' : return current state ('on'|'off')