Replaced .andSelf() function which was removed in jQuery 3.0: https://api.jquery.com/andself/
This commit is contained in:
parent
c55e0cf1fa
commit
31d27db081
|
@ -51,7 +51,7 @@ var dropdownmenu={
|
|||
if (this.builtdropdownids.length === 0){ //only bind click event to document once
|
||||
$(document).bind("click", function(e){
|
||||
if (e.button === 0){ //hide all dropdown (and their sub ULs) when left mouse button is clicked
|
||||
$('.jqdropdown').find('ul').andSelf().hide()
|
||||
$('.jqdropdown').find('ul').addBack().hide()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue