Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 9247-9255 (lines=9) @@
9244
        this.state.set('options', state);
9245
        return this;
9246
      },
9247
      renderHtml: function () {
9248
        var self = this;
9249
        var options, size = '';
9250
        options = createOptions(self._options);
9251
        if (self.size) {
9252
          size = ' size = "' + self.size + '"';
9253
        }
9254
        return '<select id="' + self._id + '" class="' + self.classes + '"' + size + '>' + options + '</select>';
9255
      },
9256
      bindStates: function () {
9257
        var self = this;
9258
        self.state.on('change:options', function (e) {

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

@@ 9055-9063 (lines=9) @@
9052
        this.state.set('options', state);
9053
        return this;
9054
      },
9055
      renderHtml: function () {
9056
        var self = this;
9057
        var options, size = '';
9058
        options = createOptions(self._options);
9059
        if (self.size) {
9060
          size = ' size = "' + self.size + '"';
9061
        }
9062
        return '<select id="' + self._id + '" class="' + self.classes + '"' + size + '>' + options + '</select>';
9063
      },
9064
      bindStates: function () {
9065
        var self = this;
9066
        self.state.on('change:options', function (e) {