From d8e505cd657a5eb4fb0fe69996be0eccab97f46b Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Mon, 15 Feb 2016 13:12:47 -0800 Subject: [PATCH] Selector cache schange #3183 --- src/definitions/modules/dropdown.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 81611d63c0..a0301b8dc9 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -971,8 +971,9 @@ $.fn.dropdown = function(parameters) { mouseenter: function(event) { var $target = $(event.target), - $subMenu = $(this).children(selector.menu), - $otherMenus = $(this).siblings(selector.item).children(selector.menu), + $item = $(this), + $subMenu = $item.children(selector.menu), + $otherMenus = $item.siblings(selector.item).children(selector.menu), hasSubMenu = ($subMenu.length > 0), isBubbledEvent = ($subMenu.find($target).length > 0) ;