Replaced .andSelf() function which was removed in jQuery 3.0: https://api.jquery.com/andself/

This commit is contained in:
Patrick Körber 2018-11-22 18:19:39 +01:00
parent c55e0cf1fa
commit 31d27db081
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}
})
}