Code Duplication    Length = 6-6 lines in 5 locations

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

@@ 6116-6121 (lines=6) @@
6113
6114
    var Global = typeof window !== 'undefined' ? window : Function('return this;')();
6115
6116
    var path = function (parts, scope) {
6117
      var o = scope !== undefined && scope !== null ? scope : Global;
6118
      for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i)
6119
        o = o[parts[i]];
6120
      return o;
6121
    };
6122
    var resolve = function (p, scope) {
6123
      var parts = p.split('.');
6124
      return path(parts, scope);

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

@@ 4239-4244 (lines=6) @@
4236
4237
    var Global = typeof window !== 'undefined' ? window : Function('return this;')();
4238
4239
    var path = function (parts, scope) {
4240
      var o = scope !== undefined && scope !== null ? scope : Global;
4241
      for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i)
4242
        o = o[parts[i]];
4243
      return o;
4244
    };
4245
    var resolve = function (p, scope) {
4246
      var parts = p.split('.');
4247
      return path(parts, scope);

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

@@ 963-968 (lines=6) @@
960
961
    var Global = typeof window !== 'undefined' ? window : Function('return this;')();
962
963
    var path = function (parts, scope) {
964
      var o = scope !== undefined && scope !== null ? scope : Global;
965
      for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i)
966
        o = o[parts[i]];
967
      return o;
968
    };
969
    var resolve = function (p, scope) {
970
      var parts = p.split('.');
971
      return path(parts, scope);

public/js/tinymce/plugins/lists/plugin.js 1 location

@@ 482-487 (lines=6) @@
479
480
    var Global = typeof window !== 'undefined' ? window : Function('return this;')();
481
482
    var path = function (parts, scope) {
483
      var o = scope !== undefined && scope !== null ? scope : Global;
484
      for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i)
485
        o = o[parts[i]];
486
      return o;
487
    };
488
    var resolve = function (p, scope) {
489
      var parts = p.split('.');
490
      return path(parts, scope);

public/js/tinymce/plugins/imagetools/plugin.js 1 location

@@ 391-396 (lines=6) @@
388
389
    var Global = typeof window !== 'undefined' ? window : Function('return this;')();
390
391
    var path = function (parts, scope) {
392
      var o = scope !== undefined && scope !== null ? scope : Global;
393
      for (var i = 0; i < parts.length && o !== undefined && o !== null; ++i)
394
        o = o[parts[i]];
395
      return o;
396
    };
397
    var resolve = function (p, scope) {
398
      var parts = p.split('.');
399
      return path(parts, scope);