Code Duplication    Length = 16-16 lines in 2 locations

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

@@ 3254-3269 (lines=16) @@
3251
        self._layout.recalc(self);
3252
        return layoutRect;
3253
      },
3254
      recalc: function () {
3255
        var self = this;
3256
        var rect = self._layoutRect;
3257
        var lastRect = self._lastRect;
3258
        if (!lastRect || lastRect.w !== rect.w || lastRect.h !== rect.h) {
3259
          self._layout.recalc(self);
3260
          rect = self.layoutRect();
3261
          self._lastRect = {
3262
            x: rect.x,
3263
            y: rect.y,
3264
            w: rect.w,
3265
            h: rect.h
3266
          };
3267
          return true;
3268
        }
3269
      },
3270
      reflow: function () {
3271
        var i;
3272
        ReflowQueue.remove(this);

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

@@ 3228-3243 (lines=16) @@
3225
        self._layout.recalc(self);
3226
        return layoutRect;
3227
      },
3228
      recalc: function () {
3229
        var self = this;
3230
        var rect = self._layoutRect;
3231
        var lastRect = self._lastRect;
3232
        if (!lastRect || lastRect.w !== rect.w || lastRect.h !== rect.h) {
3233
          self._layout.recalc(self);
3234
          rect = self.layoutRect();
3235
          self._lastRect = {
3236
            x: rect.x,
3237
            y: rect.y,
3238
            w: rect.w,
3239
            h: rect.h
3240
          };
3241
          return true;
3242
        }
3243
      },
3244
      reflow: function () {
3245
        var i;
3246
        ReflowQueue.remove(this);