Code Duplication    Length = 20-20 lines in 2 locations

resources/bootstrap/js/dropdown.js 1 location

@@ 336-355 (lines=20) @@
333
    } // Static
334
    ;
335
336
    Dropdown._jQueryInterface = function _jQueryInterface(config) {
337
      return this.each(function () {
338
        var data = $__default['default'](this).data(DATA_KEY);
339
340
        var _config = typeof config === 'object' ? config : null;
341
342
        if (!data) {
343
          data = new Dropdown(this, _config);
344
          $__default['default'](this).data(DATA_KEY, data);
345
        }
346
347
        if (typeof config === 'string') {
348
          if (typeof data[config] === 'undefined') {
349
            throw new TypeError("No method named \"" + config + "\"");
350
          }
351
352
          data[config]();
353
        }
354
      });
355
    };
356
357
    Dropdown._clearMenus = function _clearMenus(event) {
358
      if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {

resources/bootstrap/js/scrollspy.js 1 location

@@ 248-267 (lines=20) @@
245
    } // Static
246
    ;
247
248
    ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
249
      return this.each(function () {
250
        var data = $__default['default'](this).data(DATA_KEY);
251
252
        var _config = typeof config === 'object' && config;
253
254
        if (!data) {
255
          data = new ScrollSpy(this, _config);
256
          $__default['default'](this).data(DATA_KEY, data);
257
        }
258
259
        if (typeof config === 'string') {
260
          if (typeof data[config] === 'undefined') {
261
            throw new TypeError("No method named \"" + config + "\"");
262
          }
263
264
          data[config]();
265
        }
266
      });
267
    };
268
269
    _createClass(ScrollSpy, null, [{
270
      key: "VERSION",