We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a823f1 commit 337c81dCopy full SHA for 337c81d
1 file changed
src/Basic.js
@@ -93,6 +93,7 @@ export default class Basic extends EventEmitter {
93
* @returns {Basic}
94
*/
95
setEasing(easing = 'outQuad') {
96
+ if (typeof this.EASING[easing] !== 'function') throw new Error(`Unknown easing: ${easing}`);
97
return this.set('easing', easing);
98
}
99
0 commit comments