@cocreate/events 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/index.js +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.6.1](https://github.com/CoCreate-app/CoCreate-events/compare/v1.6.0...v1.6.1) (2023-03-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* events undefined ([113384c](https://github.com/CoCreate-app/CoCreate-events/commit/113384c5a7b300daf4ab7cc74d25ab9cdb2fbf8c))
|
|
7
|
+
|
|
1
8
|
# [1.6.0](https://github.com/CoCreate-app/CoCreate-events/compare/v1.5.0...v1.6.0) (2023-03-16)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -107,7 +107,8 @@ const CoCreateEvents = {
|
|
|
107
107
|
events = customEvents
|
|
108
108
|
prefixes[prefix] = events
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
if (!events)
|
|
111
|
+
events = []
|
|
111
112
|
if (events.includes('onload'))
|
|
112
113
|
this.__updateElements(el, prefix);
|
|
113
114
|
|
|
@@ -141,8 +142,6 @@ const CoCreateEvents = {
|
|
|
141
142
|
// debounce = setTimeout(function() {
|
|
142
143
|
const target = event.currentTarget
|
|
143
144
|
if (target) {
|
|
144
|
-
if (target.id == "testtemplate1" || target.id == "testtemplate2")
|
|
145
|
-
console.log(target.id)
|
|
146
145
|
let attribute = target.getAttribute('actions') || ""
|
|
147
146
|
if (attribute.includes(prefix))
|
|
148
147
|
return;
|