0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-17 09:52:29 +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 {
jQuery as $
} from './util/index'
import { jQuery as $ } from './util/index'
import Data from './dom/data'
import EventHandler from './dom/eventHandler'
import SelectorEngine from './dom/selectorEngine'

View File

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

View File

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

View File

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

View File

@ -5,9 +5,7 @@
* --------------------------------------------------------------------------
*/
import {
jQuery as $
} from './util/index'
import { jQuery as $ } from './util/index'
import Data from './dom/data'
import SelectorEngine from './dom/selectorEngine'
import Tooltip from './tooltip'

View File

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

View File

@ -1,7 +1,5 @@
import 'popper.js'
import {
Tooltip
} from '../../../dist/js/bootstrap.esm.js'
import { Tooltip } from '../../../dist/js/bootstrap.esm.js'
window.addEventListener('load', () => {
[...document.querySelectorAll('[data-toggle="tooltip"]')]