mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-24 14:04:09 +03:00
alert: Avoid calling jQuery('#'), it's a syntax error in jQuery 3.0 (#20019)
This commit is contained in:
committed by
Chris Rebert
parent
769b2d2462
commit
1956146787
+1
-1
@@ -31,7 +31,7 @@
|
||||
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
|
||||
}
|
||||
|
||||
var $parent = $(selector)
|
||||
var $parent = $(selector === '#' ? [] : selector)
|
||||
|
||||
if (e) e.preventDefault()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user