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