0
0
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:
Dave Methvin 2016-07-12 00:29:04 -07:00 committed by Chris Rebert
parent 769b2d2462
commit 1956146787

View File

@ -31,7 +31,7 @@
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
}
var $parent = $(selector)
var $parent = $(selector === '#' ? [] : selector)
if (e) e.preventDefault()