0
0
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:
XhmikosR 2019-03-13 14:55:53 +02:00 committed by GitHub
parent ff1788666f
commit 6aa475c82e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 21 deletions

View File

@ -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'

View File

@ -5,9 +5,7 @@
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
import { import { jQuery as $ } from '../util/index'
jQuery as $
} from '../util/index'
import Polyfill from './polyfill' import Polyfill from './polyfill'
/** /**

View File

@ -5,9 +5,7 @@
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
import { import { getUID } from '../util/index'
getUID
} from '../util/index'
/* istanbul ignore next */ /* istanbul ignore next */
const Polyfill = (() => { const Polyfill = (() => {

View File

@ -6,9 +6,7 @@
*/ */
import Polyfill from './polyfill' import Polyfill from './polyfill'
import { import { makeArray } from '../util/index'
makeArray
} from '../util/index'
/** /**
* ------------------------------------------------------------------------ * ------------------------------------------------------------------------

View File

@ -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'

View File

@ -5,9 +5,7 @@
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
*/ */
import { import { makeArray } from './index'
makeArray
} from './index'
const uriAttrs = [ const uriAttrs = [
'background', 'background',

View File

@ -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"]')]