Skip to content

Commit

Permalink
alert: Avoid calling jQuery('#'), it's a syntax error in jQuery 3.0 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dmethvin authored and cvrebert committed Jul 12, 2016
1 parent 769b2d2 commit 1956146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
}

var $parent = $(selector)
var $parent = $(selector === '#' ? [] : selector)

if (e) e.preventDefault()

Expand Down

0 comments on commit 1956146

Please sign in to comment.