Code Duplication    Length = 16-16 lines in 2 locations

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

@@ 4106-4121 (lines=16) @@
4103
          }
4104
        });
4105
      },
4106
      renderHtml: function () {
4107
        var self = this;
4108
        var prefix = self.classPrefix;
4109
        var icon = '', closeButton = '', progressBar = '', notificationStyle = '';
4110
        if (self.icon) {
4111
          icon = '<i class="' + prefix + 'ico' + ' ' + prefix + 'i-' + self.icon + '"></i>';
4112
        }
4113
        notificationStyle = ' style="max-width: ' + self.maxWidth + 'px;' + (self.color ? 'background-color: ' + self.color + ';"' : '"');
4114
        if (self.closeButton) {
4115
          closeButton = '<button type="button" class="' + prefix + 'close" aria-hidden="true">\xD7</button>';
4116
        }
4117
        if (self.progressBar) {
4118
          progressBar = self.progressBar.renderHtml();
4119
        }
4120
        return '<div id="' + self._id + '" class="' + self.classes + '"' + notificationStyle + ' role="presentation">' + icon + '<div class="' + prefix + 'notification-inner">' + self.state.get('text') + '</div>' + progressBar + closeButton + '<div style="clip: rect(1px, 1px, 1px, 1px);height: 1px;overflow: hidden;position: absolute;width: 1px;"' + ' aria-live="assertive" aria-relevant="additions" aria-atomic="true"></div>' + '</div>';
4121
      },
4122
      postRender: function () {
4123
        var self = this;
4124
        global$7.setTimeout(function () {

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

@@ 2626-2641 (lines=16) @@
2623
          }
2624
        });
2625
      },
2626
      renderHtml: function () {
2627
        var self = this;
2628
        var prefix = self.classPrefix;
2629
        var icon = '', closeButton = '', progressBar = '', notificationStyle = '';
2630
        if (self.icon) {
2631
          icon = '<i class="' + prefix + 'ico' + ' ' + prefix + 'i-' + self.icon + '"></i>';
2632
        }
2633
        notificationStyle = ' style="max-width: ' + self.maxWidth + 'px;' + (self.color ? 'background-color: ' + self.color + ';"' : '"');
2634
        if (self.closeButton) {
2635
          closeButton = '<button type="button" class="' + prefix + 'close" aria-hidden="true">\xD7</button>';
2636
        }
2637
        if (self.progressBar) {
2638
          progressBar = self.progressBar.renderHtml();
2639
        }
2640
        return '<div id="' + self._id + '" class="' + self.classes + '"' + notificationStyle + ' role="presentation">' + icon + '<div class="' + prefix + 'notification-inner">' + self.state.get('text') + '</div>' + progressBar + closeButton + '<div style="clip: rect(1px, 1px, 1px, 1px);height: 1px;overflow: hidden;position: absolute;width: 1px;"' + ' aria-live="assertive" aria-relevant="additions" aria-atomic="true"></div>' + '</div>';
2641
      },
2642
      postRender: function () {
2643
        var self = this;
2644
        global$3.setTimeout(function () {