Skip to content

Commit 337c81d

Browse files
committed
feat(animation): Implement check if easing is not exists
1 parent 0a823f1 commit 337c81d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Basic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export default class Basic extends EventEmitter {
9393
* @returns {Basic}
9494
*/
9595
setEasing(easing = 'outQuad') {
96+
if (typeof this.EASING[easing] !== 'function') throw new Error(`Unknown easing: ${easing}`);
9697
return this.set('easing', easing);
9798
}
9899

0 commit comments

Comments
 (0)