Skip to content
This repository was archived by the owner on Jul 6, 2020. It is now read-only.

Commit 5d12564

Browse files
committed
Fixes listener adding error.
Prior, all listeners were attached to the `attribute` object, instead of the `attributes.listeners` object. So adding a click listener would result in `attributes.click` existing, instead of `attributes.listeners.click`. This patch fixes this.
1 parent 37b49c8 commit 5d12564

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

dist/lmth.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function parseAttributes(attributes) {
117117

118118
if (attribute.startsWith('on') &&
119119
(typeof(property) === 'function' || Array.isArray(property))) {
120-
addListener(attribute.slice(2), property, nodeAttributes);
120+
addListener(attribute.slice(2), property, nodeAttributes.listeners);
121121
} else {
122122
nodeAttributes[attribute] = property;
123123
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lmth",
3-
"version": "5.0.0-rc1",
3+
"version": "5.0.0-rc2",
44
"description": "A \"type-safe\" HTML DSL for JavaScript environments.",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)