Code Duplication    Length = 41-41 lines in 2 locations

public/js/tinymce/themes/modern/theme.js 1 location

@@ 4300-4340 (lines=41) @@
4297
          }
4298
        }
4299
      },
4300
      init: function (settings) {
4301
        var self$$1 = this;
4302
        self$$1._super(settings);
4303
        if (self$$1.isRtl()) {
4304
          self$$1.classes.add('rtl');
4305
        }
4306
        self$$1.classes.add('window');
4307
        self$$1.bodyClasses.add('window-body');
4308
        self$$1.state.set('fixed', true);
4309
        if (settings.buttons) {
4310
          self$$1.statusbar = new Panel({
4311
            layout: 'flex',
4312
            border: '1 0 0 0',
4313
            spacing: 3,
4314
            padding: 10,
4315
            align: 'center',
4316
            pack: self$$1.isRtl() ? 'start' : 'end',
4317
            defaults: { type: 'button' },
4318
            items: settings.buttons
4319
          });
4320
          self$$1.statusbar.classes.add('foot');
4321
          self$$1.statusbar.parent(self$$1);
4322
        }
4323
        self$$1.on('click', function (e) {
4324
          var closeClass = self$$1.classPrefix + 'close';
4325
          if (funcs.hasClass(e.target, closeClass) || funcs.hasClass(e.target.parentNode, closeClass)) {
4326
            self$$1.close();
4327
          }
4328
        });
4329
        self$$1.on('cancel', function () {
4330
          self$$1.close();
4331
        });
4332
        self$$1.on('move', function (e) {
4333
          if (e.control === self$$1) {
4334
            FloatPanel.hideAll();
4335
          }
4336
        });
4337
        self$$1.aria('describedby', self$$1.describedBy || self$$1._id + '-none');
4338
        self$$1.aria('label', settings.title);
4339
        self$$1._fullscreen = false;
4340
      },
4341
      recalc: function () {
4342
        var self$$1 = this;
4343
        var statusbar$$1 = self$$1.statusbar;

public/js/tinymce/themes/inlite/theme.js 1 location

@@ 3778-3818 (lines=41) @@
3775
          }
3776
        }
3777
      },
3778
      init: function (settings) {
3779
        var self$$1 = this;
3780
        self$$1._super(settings);
3781
        if (self$$1.isRtl()) {
3782
          self$$1.classes.add('rtl');
3783
        }
3784
        self$$1.classes.add('window');
3785
        self$$1.bodyClasses.add('window-body');
3786
        self$$1.state.set('fixed', true);
3787
        if (settings.buttons) {
3788
          self$$1.statusbar = new Panel({
3789
            layout: 'flex',
3790
            border: '1 0 0 0',
3791
            spacing: 3,
3792
            padding: 10,
3793
            align: 'center',
3794
            pack: self$$1.isRtl() ? 'start' : 'end',
3795
            defaults: { type: 'button' },
3796
            items: settings.buttons
3797
          });
3798
          self$$1.statusbar.classes.add('foot');
3799
          self$$1.statusbar.parent(self$$1);
3800
        }
3801
        self$$1.on('click', function (e) {
3802
          var closeClass = self$$1.classPrefix + 'close';
3803
          if (funcs.hasClass(e.target, closeClass) || funcs.hasClass(e.target.parentNode, closeClass)) {
3804
            self$$1.close();
3805
          }
3806
        });
3807
        self$$1.on('cancel', function () {
3808
          self$$1.close();
3809
        });
3810
        self$$1.on('move', function (e) {
3811
          if (e.control === self$$1) {
3812
            FloatPanel.hideAll();
3813
          }
3814
        });
3815
        self$$1.aria('describedby', self$$1.describedBy || self$$1._id + '-none');
3816
        self$$1.aria('label', settings.title);
3817
        self$$1._fullscreen = false;
3818
      },
3819
      recalc: function () {
3820
        var self$$1 = this;
3821
        var statusbar$$1 = self$$1.statusbar;