tip.js 581 B

123456789101112131415161718192021
  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. app.views.Tip = class Tip extends app.views.Notif {
  10. static initClass() {
  11. this.className = "_notif _notif-tip";
  12. this.defautOptions = { autoHide: false };
  13. }
  14. render() {
  15. this.html(this.tmpl(`tip${this.type}`));
  16. }
  17. };
  18. app.views.Tip.initClass();