src/javascript/core/utils/Dom.js
function(obj, name) {
		if (!hasClass(obj, name)) {
			obj.className = !obj.className ? name : obj.className.replace(/\s+$/, '') + ' ' + name;
		}
	}
function(obj, name) {
		if (!hasClass(obj, name)) {
			obj.className = !obj.className ? name : obj.className.replace(/\s+$/, '') + ' ' + name;
		}
	}
Adds specified className to specified DOM element.

@method addClass
@static
@param {Object} obj DOM element like object to add handler to.
@param {String} name Class name