diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-03-13 15:55:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-13 15:55:53 +0300 |
commit | 6aa475c82e69a02882e87da7067e522806d6579c (patch) | |
tree | 5f0068ae92d93f771458ccdaa5fece0b2674e6e9 /js | |
parent | ff1788666ffe935fa066eca6f5a6b9f4384c9b36 (diff) |
Use one-line imports when possible. (#28467)
Diffstat (limited to 'js')
-rw-r--r-- | js/src/button.js | 4 | ||||
-rw-r--r-- | js/src/dom/eventHandler.js | 4 | ||||
-rw-r--r-- | js/src/dom/polyfill.js | 4 | ||||
-rw-r--r-- | js/src/dom/selectorEngine.js | 4 | ||||
-rw-r--r-- | js/src/popover.js | 4 | ||||
-rw-r--r-- | js/src/util/sanitizer.js | 4 | ||||
-rw-r--r-- | js/tests/integration/bundle.js | 4 |
7 files changed, 7 insertions, 21 deletions
diff --git a/js/src/button.js b/js/src/button.js index 08d0f20308..6453137e4e 100644 --- a/js/src/button.js +++ b/js/src/button.js @@ -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' diff --git a/js/src/dom/eventHandler.js b/js/src/dom/eventHandler.js index f770577b39..1774650533 100644 --- a/js/src/dom/eventHandler.js +++ b/js/src/dom/eventHandler.js @@ -5,9 +5,7 @@ * -------------------------------------------------------------------------- */ -import { - jQuery as $ -} from '../util/index' +import { jQuery as $ } from '../util/index' import Polyfill from './polyfill' /** diff --git a/js/src/dom/polyfill.js b/js/src/dom/polyfill.js index eaf07552e8..f6cd23bdb9 100644 --- a/js/src/dom/polyfill.js +++ b/js/src/dom/polyfill.js @@ -5,9 +5,7 @@ * -------------------------------------------------------------------------- */ -import { - getUID -} from '../util/index' +import { getUID } from '../util/index' /* istanbul ignore next */ const Polyfill = (() => { diff --git a/js/src/dom/selectorEngine.js b/js/src/dom/selectorEngine.js index f674319d1c..a54b18e581 100644 --- a/js/src/dom/selectorEngine.js +++ b/js/src/dom/selectorEngine.js @@ -6,9 +6,7 @@ */ import Polyfill from './polyfill' -import { - makeArray -} from '../util/index' +import { makeArray } from '../util/index' /** * ------------------------------------------------------------------------ diff --git a/js/src/popover.js b/js/src/popover.js index bee07d5e29..f97e25adcd 100644 --- a/js/src/popover.js +++ b/js/src/popover.js @@ -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' diff --git a/js/src/util/sanitizer.js b/js/src/util/sanitizer.js index b2a1d0548b..a85bc5f91d 100644 --- a/js/src/util/sanitizer.js +++ b/js/src/util/sanitizer.js @@ -5,9 +5,7 @@ * -------------------------------------------------------------------------- */ -import { - makeArray -} from './index' +import { makeArray } from './index' const uriAttrs = [ 'background', diff --git a/js/tests/integration/bundle.js b/js/tests/integration/bundle.js index ace578b316..69d7543525 100644 --- a/js/tests/integration/bundle.js +++ b/js/tests/integration/bundle.js @@ -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"]')] |