FuncUnit.prototype.hasClass  function     

//returns if the element has the class in its className
S("#something").hasClass("selected");

//waits until #something has selected in its className
S("#something").hasClass("selected",true);

//waits until #something does not have selected in its className
S("#something").hasClass("selected",false);
func_unit.hasClass(className, value, callback) -> Boolean|funcUnit
{String}

The part of the className to search for.

{optional:Boolean|Function}

If provided uses this as a check before continuing to the next action.

{optional:Function}

a callback that will run after this action completes.

{Boolean|funcUnit}

if the value parameter is not provided, returns if the className is found in the element's className. If a value paramters is provided, returns funcUnit for chaining.

© Jupiter IT - JavaScriptMVC Training and Support