git ssb

1+

Matt McKegg / mutant



Commit ec39f72902c3a64aa9841e339bd53cf60182953c

html-element: fix event handling (shouldn't be using capture)

Matt McKegg committed on 7/8/2016, 4:56:08 AM
Parent: a1abe9b483bc5d56548a660d97c1e2290a176d19

Files changed

lib/apply-properties.jschanged
lib/apply-properties.jsView
@@ -48,12 +48,12 @@
4848 }
4949 }
5050 } else if (key === 'events') {
5151 for (var name in value) {
52- target.addEventListener(name, value[name], true)
52 + target.addEventListener(name, value[name], false)
5353 }
5454 } else if (key.slice(0, 3) === 'ev-') {
55- target.addEventListener(key.slice(3), value, true)
55 + target.addEventListener(key.slice(3), value, false)
5656 } else if (key === 'className' || key === 'classList') {
5757 if (Array.isArray(valueOrObs)) {
5858 valueOrObs.forEach(function (v) {
5959 classList.add(v)

Built with git-ssb-web