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.
Files changed (2) hide show
  1. package/lib/dom.js +1 -0
  2. 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 = '';
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "module": "lib/index_m.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "browser": "lib/index_m.js",
8
- "version": "0.1.4",
8
+ "version": "0.1.5",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https//gitee.com/towardly/ph.git",