mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-23 05:33:02 +02:00
Use String.startsWith
This commit is contained in:
@@ -235,7 +235,7 @@ const EventHandler = {
|
||||
const [delegation, originalHandler, typeEvent] = normalizeParams(originalTypeEvent, handler, delegationFn)
|
||||
const inNamespace = typeEvent !== originalTypeEvent
|
||||
const events = getEvent(element)
|
||||
const isNamespace = originalTypeEvent.charAt(0) === '.'
|
||||
const isNamespace = originalTypeEvent.startsWith('.')
|
||||
|
||||
if (typeof originalHandler !== 'undefined') {
|
||||
// Simplest case: handler is passed, remove that listener ONLY.
|
||||
|
Reference in New Issue
Block a user