1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-03 02:13:01 +02:00

move util in a util folder with the sanitizer

This commit is contained in:
Johann-S
2019-02-23 00:37:55 +02:00
committed by XhmikosR
parent 8affe84c72
commit 8a37045b79
34 changed files with 559 additions and 589 deletions

View File

@@ -5,8 +5,10 @@
* --------------------------------------------------------------------------
*/
import {
jQuery as $
} from '../util/index'
import Polyfill from './polyfill'
import Util from '../util'
/**
* ------------------------------------------------------------------------
@@ -248,7 +250,6 @@ const EventHandler = {
const typeEvent = event.replace(stripNameRegex, '')
const inNamespace = event !== typeEvent
const isNative = nativeEvents.indexOf(typeEvent) > -1
const $ = Util.jQuery
let jQueryEvent
let bubbles = true

View File

@@ -5,7 +5,9 @@
* --------------------------------------------------------------------------
*/
import Util from '../util'
import {
getUID
} from '../util/index'
/* istanbul ignore next */
const Polyfill = (() => {
@@ -48,7 +50,7 @@ const Polyfill = (() => {
const hasId = Boolean(this.id)
if (!hasId) {
this.id = Util.getUID('scope')
this.id = getUID('scope')
}
let nodeList = null

View File

@@ -6,7 +6,9 @@
*/
import Polyfill from './polyfill'
import Util from '../util'
import {
makeArray
} from '../util/index'
/**
* ------------------------------------------------------------------------
@@ -44,7 +46,7 @@ const SelectorEngine = {
return null
}
const children = Util.makeArray(element.children)
const children = makeArray(element.children)
return children.filter((child) => this.matches(child, selector))
},