@interactjs/core
Advanced tools
Comparing version 1.8.0-alpha.0 to 1.8.0-alpha.1
@@ -81,6 +81,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
for (const optionName in options) { | ||
for (const optionName_ in options) { | ||
const optionName = optionName_; | ||
const actionOptions = this.options[actionName]; | ||
const optionValue = options[optionName]; | ||
const isArray = is.array(optionValue); // remove old event listeners and add new ones | ||
const optionValue = options[optionName]; // remove old event listeners and add new ones | ||
@@ -92,6 +92,6 @@ if (optionName === 'listeners') { | ||
if (isArray) { | ||
if (is.array(optionValue)) { | ||
actionOptions[optionName] = arr.from(optionValue); | ||
} // if the option value is an object | ||
else if (!isArray && is.plainObject(optionValue)) { | ||
else if (is.plainObject(optionValue)) { | ||
// copy the object | ||
@@ -343,3 +343,4 @@ actionOptions[optionName] = extend(actionOptions[optionName] || {}, clone(optionValue)); // set anabled field to true if it exists in the defaults | ||
for (const actionName in this._actions.methodDict) { | ||
for (const actionName_ in this._actions.methodDict) { | ||
const actionName = actionName_; | ||
const methodName = this._actions.methodDict[actionName]; | ||
@@ -378,7 +379,3 @@ this.options[actionName] = {}; | ||
delegated.contexts.splice(0, 1); | ||
delegated.listeners.splice(0, 1); // remove the arrays if they are empty | ||
if (!delegated.selectors.length) { | ||
delegated[type] = null; | ||
} | ||
delegated.listeners.splice(0, 1); | ||
} | ||
@@ -385,0 +382,0 @@ |
@@ -13,2 +13,4 @@ import * as dom from "../utils/domUtils.js"; | ||
} | ||
return null; | ||
}, | ||
@@ -15,0 +17,0 @@ |
{ | ||
"name": "@interactjs/core", | ||
"version": "1.8.0-alpha.0", | ||
"version": "1.8.0-alpha.1", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"@interactjs/dev-tools": "1.8.0-alpha.0", | ||
"@interactjs/utils": "1.8.0-alpha.0" | ||
"@interactjs/dev-tools": "1.8.0-alpha.1", | ||
"@interactjs/utils": "1.8.0-alpha.1" | ||
}, | ||
"devDependencies": { | ||
"@interactjs/actions": "1.8.0-alpha.0", | ||
"@interactjs/auto-start": "1.8.0-alpha.0" | ||
"@interactjs/actions": "1.8.0-alpha.1", | ||
"@interactjs/auto-start": "1.8.0-alpha.1" | ||
}, | ||
@@ -13,0 +13,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
189008
27
1775