Skip to content

Commit

Permalink
Selectable: add ui-selectee class to elements matching filter on refr…
Browse files Browse the repository at this point in the history
…esh. Fixes #7716 - Selectable: new elements added programatically don't have class ui-selectee
  • Loading branch information
rdworth committed Nov 16, 2011
1 parent e5464f8 commit 97bc2d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/jquery.ui.selectable.js
Expand Up @@ -34,6 +34,7 @@ $.widget("ui.selectable", $.ui.mouse, {
var selectees; var selectees;
this.refresh = function() { this.refresh = function() {
selectees = $(self.options.filter, self.element[0]); selectees = $(self.options.filter, self.element[0]);
selectees.addClass("ui-selectee");
selectees.each(function() { selectees.each(function() {
var $this = $(this); var $this = $(this);
var pos = $this.offset(); var pos = $this.offset();
Expand Down

0 comments on commit 97bc2d9

Please sign in to comment.