Code Duplication    Length = 25-25 lines in 2 locations

public/js/tinymce/themes/mobile/theme.js 2 locations

@@ 10063-10087 (lines=25) @@
10060
        throttle: throttle
10061
      };
10062
    };
10063
    var last$3 = function (fn, rate) {
10064
      var timer = null;
10065
      var cancel = function () {
10066
        if (timer !== null) {
10067
          clearTimeout(timer);
10068
          timer = null;
10069
        }
10070
      };
10071
      var throttle = function () {
10072
        var args = [];
10073
        for (var _i = 0; _i < arguments.length; _i++) {
10074
          args[_i] = arguments[_i];
10075
        }
10076
        if (timer !== null)
10077
          clearTimeout(timer);
10078
        timer = setTimeout(function () {
10079
          fn.apply(null, args);
10080
          timer = null;
10081
        }, rate);
10082
      };
10083
      return {
10084
        cancel: cancel,
10085
        throttle: throttle
10086
      };
10087
    };
10088
10089
    var sketch$a = function (onView, translate) {
10090
      var memIcon = record(Container.sketch({
@@ 10038-10062 (lines=25) @@
10035
    };
10036
    var AndroidMode = { create: create$5 };
10037
10038
    var first$4 = function (fn, rate) {
10039
      var timer = null;
10040
      var cancel = function () {
10041
        if (timer !== null) {
10042
          clearTimeout(timer);
10043
          timer = null;
10044
        }
10045
      };
10046
      var throttle = function () {
10047
        var args = [];
10048
        for (var _i = 0; _i < arguments.length; _i++) {
10049
          args[_i] = arguments[_i];
10050
        }
10051
        if (timer === null) {
10052
          timer = setTimeout(function () {
10053
            fn.apply(null, args);
10054
            timer = null;
10055
          }, rate);
10056
        }
10057
      };
10058
      return {
10059
        cancel: cancel,
10060
        throttle: throttle
10061
      };
10062
    };
10063
    var last$3 = function (fn, rate) {
10064
      var timer = null;
10065
      var cancel = function () {