Core Docs | Additional Modules Docs

Element.prototype.isOrHasParentOfClassName


@Description: Searches the node itself, followed by parentnodes incrementally till it find a node of the specified className
@File: Element/prototype/isOrHasParentOfClassName.js
@Author: Paul Visco
@Version: 0.1 05-10-09 06-03-09
@Param: string className The className to look for
@Return: sb.element The element itself or the parentNode that has the className or false if not found
@Example:
//would check if mySbElement has the className highlighted and if not search parentNodes till it found one that did or returned false
mySbElement.isOrHasParentOfClassName('highlighted');