hasClass = function(node, name)
This function expects a node, that for example can be obtained with Firebug "$()" function, and the CSS class name that we are searching for. Returns boolean as expected.
setClass = function(node, name)
Adds the CSS class provided by
removeClass = function(node, name)
Removes the class specified by
toggleClass = function(elt, name)
namethen it will remove it from the element, otherwise it will add the class to the element.
setClassTimed = function(elt, name, context, timeout)
This will add the class
nameto the element. When the milliseconds timeout has expired, the class will be removed from the element and the timeout will be cleared. The timeout is added to the provided Firebug
cancelClassTimed = function(elt, name, context)
This method will remove a class added with the previous method and will clear the timeout.
All this methods can be accessed from inside our Firebug extensions if we declared them as explained here by Jan Odvarko. Another way is calling them like this:
There are more utilities inside the Firebug libraries that can help us while we develop our custom extensions, so we don't have to reinvent the wheel. I've plans of keep documenting the Firebug code, so stay tuned.