mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 18:54:30 +01:00
alert: Avoid calling jQuery('#'), it's a syntax error in jQuery 3.0 (#20019)
This commit is contained in:
parent
769b2d2462
commit
1956146787
@ -31,7 +31,7 @@
|
||||
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
|
||||
}
|
||||
|
||||
var $parent = $(selector)
|
||||
var $parent = $(selector === '#' ? [] : selector)
|
||||
|
||||
if (e) e.preventDefault()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user