From b2157aa4829bc004e0fc772008dbb58bac2fbe73 Mon Sep 17 00:00:00 2001 From: Fearodin Date: Fri, 27 Oct 2017 12:11:15 +0200 Subject: [PATCH] Fixed Refresh-Memoryleak on disabled selectmenus Due to a missing suppressDisabledCheck-Flag in the bindRemoveEvent-Function the handler '_untrackClassesElement' never was risen for disabled selectmenus, which makes the whole thing slower and slower for each refresh-call. --- ui/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widget.js b/ui/widget.js index c101e59d4c1..c1fad65cc85 100644 --- a/ui/widget.js +++ b/ui/widget.js @@ -504,7 +504,7 @@ $.Widget.prototype = { } ); if ( !isTracked ) { - that._on( $( element ), { + that._on( true, $( element ), { remove: "_untrackClassesElement" } ); }