14 lines
306 B
XML
14 lines
306 B
XML
module.exports.getTypeof = function (obj) {
|
|
return typeof obj;
|
|
};
|
|
|
|
module.exports.getActionClass = function (prefix, buttonLayout) {
|
|
var cls = [prefix + '__button', prefix + '__button--action'];
|
|
|
|
if (buttonLayout) {
|
|
cls.push(prefix + '__button--' + buttonLayout);
|
|
}
|
|
|
|
return cls.join(' ');
|
|
};
|