updated by GasGit automation
This commit is contained in:
parent
919532f542
commit
9317041efb
1 changed files with 12 additions and 2 deletions
|
@ -61,9 +61,19 @@ var DomUtils = (function(ns) {
|
|||
}
|
||||
return element;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* hide a div
|
||||
* apply a class to a div
|
||||
* @param {element} element
|
||||
* @param {boolean} addClass whether to remove or add
|
||||
* @param {string} [className] the class
|
||||
* @return {element} the div
|
||||
*/
|
||||
ns.applyClass = function(element, addClass, className) {
|
||||
return ns.hide (element , addClass , className)
|
||||
};
|
||||
/**
|
||||
* apply a class to a div
|
||||
* @param {element} element
|
||||
* @param {boolean} addClass whether to remove or add
|
||||
* @param {string} [className] the class
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue