@riotjs/dom-bindings
Advanced tools
Comparing version 4.6.8 to 4.7.0
@@ -1166,2 +1166,4 @@ /** | ||
const getCallbackAndOptions = value => Array.isArray(value) ? value : [value, false]; | ||
/** | ||
@@ -1180,7 +1182,7 @@ * Set a new event listener | ||
if (oldValue) { | ||
node.removeEventListener(normalizedEventName, oldValue); | ||
node.removeEventListener(normalizedEventName, ...getCallbackAndOptions(oldValue)); | ||
} | ||
if (value) { | ||
node.addEventListener(normalizedEventName, value, false); | ||
node.addEventListener(normalizedEventName, ...getCallbackAndOptions(value)); | ||
} | ||
@@ -1700,3 +1702,3 @@ } | ||
const templateTagOffset = isTemplateTag ? Math.max( | ||
Array.from(parentNode.children).indexOf(el), | ||
Array.from(parentNode.childNodes).indexOf(el), | ||
0 | ||
@@ -1703,0 +1705,0 @@ ) : null; |
@@ -1172,2 +1172,4 @@ (function (global, factory) { | ||
const getCallbackAndOptions = value => Array.isArray(value) ? value : [value, false]; | ||
/** | ||
@@ -1186,7 +1188,7 @@ * Set a new event listener | ||
if (oldValue) { | ||
node.removeEventListener(normalizedEventName, oldValue); | ||
node.removeEventListener(normalizedEventName, ...getCallbackAndOptions(oldValue)); | ||
} | ||
if (value) { | ||
node.addEventListener(normalizedEventName, value, false); | ||
node.addEventListener(normalizedEventName, ...getCallbackAndOptions(value)); | ||
} | ||
@@ -1706,3 +1708,3 @@ } | ||
const templateTagOffset = isTemplateTag ? Math.max( | ||
Array.from(parentNode.children).indexOf(el), | ||
Array.from(parentNode.childNodes).indexOf(el), | ||
0 | ||
@@ -1709,0 +1711,0 @@ ) : null; |
{ | ||
"name": "@riotjs/dom-bindings", | ||
"version": "4.6.8", | ||
"version": "4.7.0", | ||
"description": "Riot.js DOM bindings", | ||
@@ -47,12 +47,12 @@ "main": "dist/umd.dom-bindings.js", | ||
"esm": "^3.2.25", | ||
"jsdom": "^16.0.0", | ||
"jsdom": "^16.2.0", | ||
"jsdom-global": "3.0.2", | ||
"mocha": "^7.0.1", | ||
"mocha": "^7.1.0", | ||
"nyc": "^15.0.0", | ||
"rollup": "^1.31.0", | ||
"rollup": "^2.0.2", | ||
"rollup-plugin-alias": "^2.2.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"sinon": "^8.1.1", | ||
"sinon-chai": "^3.4.0", | ||
"typescript": "^3.7.5" | ||
"sinon": "^9.0.0", | ||
"sinon-chai": "^3.5.0", | ||
"typescript": "^3.8.3" | ||
}, | ||
@@ -59,0 +59,0 @@ "dependencies": { |
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
116849
3333