Code Duplication    Length = 21-21 lines in 2 locations

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

@@ 1804-1824 (lines=21) @@
1801
        }
1802
        return self;
1803
      },
1804
      filter: function (selector) {
1805
        var self = this;
1806
        var i, l;
1807
        var matches = [];
1808
        var item, match;
1809
        if (typeof selector === 'string') {
1810
          selector = new Selector(selector);
1811
          match = function (item) {
1812
            return selector.match(item);
1813
          };
1814
        } else {
1815
          match = selector;
1816
        }
1817
        for (i = 0, l = self.length; i < l; i++) {
1818
          item = self[i];
1819
          if (match(item)) {
1820
            matches.push(item);
1821
          }
1822
        }
1823
        return new Collection$1(matches);
1824
      },
1825
      slice: function () {
1826
        return new Collection$1(slice$1.apply(this, arguments));
1827
      },

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

@@ 1264-1284 (lines=21) @@
1261
        }
1262
        return self;
1263
      },
1264
      filter: function (selector) {
1265
        var self = this;
1266
        var i, l;
1267
        var matches = [];
1268
        var item, match;
1269
        if (typeof selector === 'string') {
1270
          selector = new Selector(selector);
1271
          match = function (item) {
1272
            return selector.match(item);
1273
          };
1274
        } else {
1275
          match = selector;
1276
        }
1277
        for (i = 0, l = self.length; i < l; i++) {
1278
          item = self[i];
1279
          if (match(item)) {
1280
            matches.push(item);
1281
          }
1282
        }
1283
        return new Collection$1(matches);
1284
      },
1285
      slice: function () {
1286
        return new Collection$1(slice$1.apply(this, arguments));
1287
      },