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:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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))
|
||||
},
|
||||
|
Reference in New Issue
Block a user