Ticketfly/ember-ticketfly-accordion

View on GitHub
addon/configuration.js

Summary

Maintainability
A
0 mins
Test Coverage
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 || {};
  }
}