1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Slight optimisation of $tw.utils.addClass()

This commit is contained in:
Jeremy Ruston 2019-11-20 17:38:28 +00:00
parent 9cff8eb741
commit a65cfe98d5

View File

@ -36,8 +36,8 @@ exports.addClass = function(el,className) {
var c = el.className.split(" ");
if(c.indexOf(className) === -1) {
c.push(className);
el.className = c.join(" ");
}
el.className = c.join(" ");
};
exports.removeClass = function(el,className) {