forum-layout.js 452 B

123456789101112131415161718192021
  1. (function (Misago) {
  2. 'use strict';
  3. Misago.addService('forum-layout', {
  4. factory: function(_) {
  5. if (_.setup.fixture) {
  6. m.mount(document.getElementById(_.setup.fixture),
  7. _.component('forum-layout'));
  8. }
  9. },
  10. destroy: function(_) {
  11. if (_.setup.fixture) {
  12. m.mount(document.getElementById(_.setup.fixture), null);
  13. }
  14. }
  15. },
  16. {
  17. before: 'start-routing'
  18. });
  19. }(Misago.prototype));