ph-utils 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/dom.js +1 -0
- package/package.json +1 -1
package/lib/dom.js
CHANGED
@@ -65,6 +65,7 @@ export function on(element, listener, fn, once = false) {
|
|
65
65
|
eventExtra = once;
|
66
66
|
}
|
67
67
|
if (eventExtra.eventFlag !== null) {
|
68
|
+
element.setAttribute(eventExtra.eventFlag, '__stop__');
|
68
69
|
element.addEventListener(listener, (e) => {
|
69
70
|
let target = e.target;
|
70
71
|
let flag = '';
|