Code Duplication    Length = 20-20 lines in 2 locations

resources/bootstrap/js/dropdown.js 1 location

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

resources/bootstrap/js/scrollspy.js 1 location

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