From a5384e679ff27fa543e8c8b176d73c19da60e330 Mon Sep 17 00:00:00 2001 From: CODE-REaD Date: Fri, 1 Jun 2018 07:58:04 -0500 Subject: [PATCH] Update for jQuery 3: addBack() in place of andSelf() As pointed out by @akurfuerst and @Seoptics (see https://github.com/marcj/jquery-selectBox/issues/180), andSelf() is removed in jquery 3, see https://jquery.com/upgrade-guide/3.0/#breaking-change-andself-removed-use-addback --- jquery.selectBox.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.selectBox.js b/jquery.selectBox.js index e4c7b8f..7b90930 100755 --- a/jquery.selectBox.js +++ b/jquery.selectBox.js @@ -548,7 +548,7 @@ $(document).bind('mousedown.selectBox', function (event) { if (1 === event.which) { - if ($(event.target).parents().andSelf().hasClass('selectBox-options')) { + if ($(event.target).parents().addBack().hasClass('selectBox-options')) { return; } self.hideMenus();