select-animation 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/select-animation.js +1 -1
package/package.json
CHANGED
package/select-animation.js
CHANGED
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
defsCopy[c].typeAnimation = "cubicbezier";
|
|
186
186
|
} else {
|
|
187
187
|
// STOP EXECUTION: If easing is not found, do not fall back to linear
|
|
188
|
-
if (requestedType !== "linear" && requestedType !== "vibration" && requestedType !== "cubicbezier" && (!
|
|
188
|
+
if (requestedType !== "linear" && requestedType !== "vibration" && requestedType !== "cubicbezier" && (!Easing || !Easing[requestedType])) {
|
|
189
189
|
// Use Error instead of warn to make it impossible to ignore
|
|
190
190
|
throw new Error(`Select-Animation ERROR: The easing function "${requestedType}" does not exist. Please check your spelling or definitions.`);
|
|
191
191
|
}
|