mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Use one-line imports when possible. (#28467)
This commit is contained in:
parent
ff1788666f
commit
6aa475c82e
@ -5,9 +5,7 @@
|
|||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { jQuery as $ } from './util/index'
|
||||||
jQuery as $
|
|
||||||
} from './util/index'
|
|
||||||
import Data from './dom/data'
|
import Data from './dom/data'
|
||||||
import EventHandler from './dom/eventHandler'
|
import EventHandler from './dom/eventHandler'
|
||||||
import SelectorEngine from './dom/selectorEngine'
|
import SelectorEngine from './dom/selectorEngine'
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { jQuery as $ } from '../util/index'
|
||||||
jQuery as $
|
|
||||||
} from '../util/index'
|
|
||||||
import Polyfill from './polyfill'
|
import Polyfill from './polyfill'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { getUID } from '../util/index'
|
||||||
getUID
|
|
||||||
} from '../util/index'
|
|
||||||
|
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
const Polyfill = (() => {
|
const Polyfill = (() => {
|
||||||
|
@ -6,9 +6,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import Polyfill from './polyfill'
|
import Polyfill from './polyfill'
|
||||||
import {
|
import { makeArray } from '../util/index'
|
||||||
makeArray
|
|
||||||
} from '../util/index'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ------------------------------------------------------------------------
|
* ------------------------------------------------------------------------
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { jQuery as $ } from './util/index'
|
||||||
jQuery as $
|
|
||||||
} from './util/index'
|
|
||||||
import Data from './dom/data'
|
import Data from './dom/data'
|
||||||
import SelectorEngine from './dom/selectorEngine'
|
import SelectorEngine from './dom/selectorEngine'
|
||||||
import Tooltip from './tooltip'
|
import Tooltip from './tooltip'
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
* --------------------------------------------------------------------------
|
* --------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {
|
import { makeArray } from './index'
|
||||||
makeArray
|
|
||||||
} from './index'
|
|
||||||
|
|
||||||
const uriAttrs = [
|
const uriAttrs = [
|
||||||
'background',
|
'background',
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
import 'popper.js'
|
import 'popper.js'
|
||||||
import {
|
import { Tooltip } from '../../../dist/js/bootstrap.esm.js'
|
||||||
Tooltip
|
|
||||||
} from '../../../dist/js/bootstrap.esm.js'
|
|
||||||
|
|
||||||
window.addEventListener('load', () => {
|
window.addEventListener('load', () => {
|
||||||
[...document.querySelectorAll('[data-toggle="tooltip"]')]
|
[...document.querySelectorAll('[data-toggle="tooltip"]')]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user