8346e283ad797ef549be70335d3961f4324901baRyan Grove * @module node
8346e283ad797ef549be70335d3961f4324901baRyan Grove * @submodule node-base
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * Determines whether each node has the given className.
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * @method hasClass
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * @param {String} className the class name to search for
8346e283ad797ef549be70335d3961f4324901baRyan Grove * @return {Boolean} Whether or not the element has the specified class
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * Adds a class name to each node.
8346e283ad797ef549be70335d3961f4324901baRyan Grove * @method addClass
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * @param {String} className the class name to add to the node's class attribute
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * @chainable
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * Removes a class name from each node.
8346e283ad797ef549be70335d3961f4324901baRyan Grove * @method removeClass
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * @param {String} className the class name to remove from the node's class attribute
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * @chainable
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney 'removeClass',
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * Replace a class with another class for each node.
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * If no oldClassName is present, the newClassName is simply added.
8346e283ad797ef549be70335d3961f4324901baRyan Grove * @method replaceClass
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * @param {String} oldClassName the class name to be replaced
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * @param {String} newClassName the class name that will be replacing the old class name
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * @chainable
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney 'replaceClass',
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * If the className exists on the node it is removed, if it doesn't exist it is added.
8346e283ad797ef549be70335d3961f4324901baRyan Grove * @method toggleClass
8ff167b366d7ee96cfc801bb01cd93e3ce573cbfMatt Sweeney * @param {String} className the class name to be toggled