@beisen-platform/common-func
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -284,7 +284,10 @@ import "core-js/modules/es6.regexp.match"; | ||
} else { | ||
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); | ||
// 当__resizeListeners__存在时,再进行操作,防止报错 | ||
if (element.__resizeListeners__) { | ||
element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1); | ||
if (!element.__resizeListeners__.length) { | ||
element.removeEventListener('scroll', scrollListener); | ||
element.__resizeTrigger__ = !element.removeChild(element.__resizeTrigger__); | ||
if (!element.__resizeListeners__.length) { | ||
element.removeEventListener('scroll', scrollListener); | ||
element.__resizeTrigger__ = !element.removeChild(element.__resizeTrigger__); | ||
} | ||
} | ||
@@ -291,0 +294,0 @@ } |
{ | ||
"name": "@beisen-platform/common-func", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "CommonFunc", | ||
@@ -8,3 +8,4 @@ "main": "lib/index.js", | ||
"lib": "stl build lib", | ||
"examples": "sbl start --port 9001" | ||
"examples": "sbl start --port 9001", | ||
"prepublish": "npm run lib" | ||
}, | ||
@@ -11,0 +12,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33449
7
447