Code Duplication    Length = 20-20 lines in 2 locations

resources/bootstrap/js/scrollspy.js 1 location

@@ 273-292 (lines=20) @@
270
    } // Static
271
    ;
272
273
    ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
274
      return this.each(function () {
275
        var data = $__default["default"](this).data(DATA_KEY);
276
277
        var _config = typeof config === 'object' && config;
278
279
        if (!data) {
280
          data = new ScrollSpy(this, _config);
281
          $__default["default"](this).data(DATA_KEY, data);
282
        }
283
284
        if (typeof config === 'string') {
285
          if (typeof data[config] === 'undefined') {
286
            throw new TypeError("No method named \"" + config + "\"");
287
          }
288
289
          data[config]();
290
        }
291
      });
292
    };
293
294
    _createClass(ScrollSpy, null, [{
295
      key: "VERSION",

resources/bootstrap/js/dropdown.js 1 location

@@ 360-379 (lines=20) @@
357
358
    Dropdown._jQueryInterface = function _jQueryInterface(config) {
359
      return this.each(function () {
360
        var data = $__default["default"](this).data(DATA_KEY);
361
362
        var _config = typeof config === 'object' ? config : null;
363
364
        if (!data) {
365
          data = new Dropdown(this, _config);
366
          $__default["default"](this).data(DATA_KEY, data);
367
        }
368
369
        if (typeof config === 'string') {
370
          if (typeof data[config] === 'undefined') {
371
            throw new TypeError("No method named \"" + config + "\"");
372
          }
373
374
          data[config]();
375
        }
376
      });
377
    };
378
379
    Dropdown._clearMenus = function _clearMenus(event) {
380
      if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
381
        return;
382
      }