Code Duplication    Length = 25-25 lines in 2 locations

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

@@ 10080-10104 (lines=25) @@
10077
        throttle: throttle
10078
      };
10079
    };
10080
    var last$3 = function (fn, rate) {
10081
      var timer = null;
10082
      var cancel = function () {
10083
        if (timer !== null) {
10084
          clearTimeout(timer);
10085
          timer = null;
10086
        }
10087
      };
10088
      var throttle = function () {
10089
        var args = [];
10090
        for (var _i = 0; _i < arguments.length; _i++) {
10091
          args[_i] = arguments[_i];
10092
        }
10093
        if (timer !== null)
10094
          clearTimeout(timer);
10095
        timer = setTimeout(function () {
10096
          fn.apply(null, args);
10097
          timer = null;
10098
        }, rate);
10099
      };
10100
      return {
10101
        cancel: cancel,
10102
        throttle: throttle
10103
      };
10104
    };
10105
10106
    var sketch$a = function (onView, translate) {
10107
      var memIcon = record(Container.sketch({
@@ 10055-10079 (lines=25) @@
10052
    };
10053
    var AndroidMode = { create: create$5 };
10054
10055
    var first$4 = function (fn, rate) {
10056
      var timer = null;
10057
      var cancel = function () {
10058
        if (timer !== null) {
10059
          clearTimeout(timer);
10060
          timer = null;
10061
        }
10062
      };
10063
      var throttle = function () {
10064
        var args = [];
10065
        for (var _i = 0; _i < arguments.length; _i++) {
10066
          args[_i] = arguments[_i];
10067
        }
10068
        if (timer === null) {
10069
          timer = setTimeout(function () {
10070
            fn.apply(null, args);
10071
            timer = null;
10072
          }, rate);
10073
        }
10074
      };
10075
      return {
10076
        cancel: cancel,
10077
        throttle: throttle
10078
      };
10079
    };
10080
    var last$3 = function (fn, rate) {
10081
      var timer = null;
10082
      var cancel = function () {