tip.js 591 B

12345678910111213141516171819202122
  1. // TODO: This file was created by bulk-decaffeinate.
  2. // Sanity-check the conversion and remove this comment.
  3. /*
  4. * decaffeinate suggestions:
  5. * DS206: Consider reworking classes to avoid initClass
  6. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
  7. */
  8. //= require views/misc/notif
  9. const Cls = (app.views.Tip = class Tip extends app.views.Notif {
  10. static initClass() {
  11. this.className = '_notif _notif-tip';
  12. this.defautOptions =
  13. {autoHide: false};
  14. }
  15. render() {
  16. this.html(this.tmpl(`tip${this.type}`));
  17. }
  18. });
  19. Cls.initClass();