summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Carver2018-03-02 19:47:24 (GMT)
committerMark Carver2018-03-02 19:47:24 (GMT)
commit916b2b2a1934720374983cc835899d1d7ed288c5 (patch)
treee485ad649fe4ef6f062de2d43efd91f012335b53
parent8ccb043e17c81c5d0d5110939477346e33a2eec9 (diff)
Issue #2949368 by markcarver, Matroskeen: Attributes.prototype.sanitizeClasses incorrectly maps values to Attributes.cleanClass
-rw-r--r--js/attributes.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/attributes.js b/js/attributes.js
index 00ee985..e0c0c44 100644
--- a/js/attributes.js
+++ b/js/attributes.js
@@ -288,7 +288,9 @@
.filter()
// Clean the class to ensure it's a valid class name.
- .map(Attributes.cleanClass)
+ .map(function (value) {
+ return Attributes.cleanClass(value);
+ })
// Ensure classes are unique.
.uniq()