git ssb

1+

Matt McKegg / mutant



Commit 0439268600e5c3782ae500bd8b7b0f19b68ba382

fix handling of svg classLists

Matt McKegg committed on 4/24/2017, 3:28:04 AM
Parent: 5e674ae0fa64613f83914dd55187c41b9c945862

Files changed

lib/apply-properties.jschanged
lib/apply-properties.jsView
@@ -5,10 +5,10 @@
55 module.exports = applyProperties
66
77 function applyProperties (target, properties, data) {
88 var classList = Set()
9- if (target.className) {
10- classList.add(target.className)
9 + if (target.classList && target.classList.value) {
10 + classList.add(target.classList.value)
1111 }
1212
1313 for (var key in properties) {
1414 var valueOrObs = properties[key]

Built with git-ssb-web