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 committed May 27, 2016
1 parent cd071e0 commit dd77ecc
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 dd77ecc

Please sign in to comment.