1 2 3 4 5 6 7 8 9 10 11 12 13 | 5× 5× | export default {
useAddonAnimations: false,
addonAnimationSettings: null,
load(options = {}) {
// ❗️ Any more options, and we should probably iterate over Object.getOwnProperties(this)
// filtering out functions, and set values accordingly
this.useAddonAnimations = !!options.useAddonAnimations;
this.addonAnimationSettings = options.addonAnimationSettings || {};
}
}
|