]> source.dussan.org Git - jquery-ui.git/commitdiff
Selectable: add ui-selectee class to elements matching filter on refresh. Fixes ...
authorRichard D. Worth <rdworth@gmail.com>
Wed, 16 Nov 2011 15:52:12 +0000 (10:52 -0500)
committerRichard D. Worth <rdworth@gmail.com>
Wed, 16 Nov 2011 15:52:58 +0000 (10:52 -0500)
(cherry picked from commit 97bc2d9de9875e222254cfa1cd3fa3bde605c2ed)

ui/jquery.ui.selectable.js

index fa7d011229c4a927178e3c257db116fddb0f12fb..19ed1fbd7e3d46641d6206ae2679a33b4598dee7 100644 (file)
@@ -33,6 +33,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();