From: Richard D. Worth Date: Wed, 16 Nov 2011 15:52:12 +0000 (-0500) Subject: Selectable: add ui-selectee class to elements matching filter on refresh. Fixes ... X-Git-Tag: 1.9m7~146 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=97bc2d9de9875e222254cfa1cd3fa3bde605c2ed;p=jquery-ui.git Selectable: add ui-selectee class to elements matching filter on refresh. Fixes #7716 - Selectable: new elements added programatically don't have class ui-selectee --- diff --git a/ui/jquery.ui.selectable.js b/ui/jquery.ui.selectable.js index 75f1cee66..d7b24d4e3 100644 --- a/ui/jquery.ui.selectable.js +++ b/ui/jquery.ui.selectable.js @@ -34,6 +34,7 @@ $.widget("ui.selectable", $.ui.mouse, { var selectees; this.refresh = function() { selectees = $(self.options.filter, self.element[0]); + selectees.addClass("ui-selectee"); selectees.each(function() { var $this = $(this); var pos = $this.offset();