diff --git a/ui/ui.core.js b/ui/ui.core.js index b7e89b37e..691847f92 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -271,13 +271,13 @@ $.ui = { return $.ui.cssCache[name]; }, disableSelection: function(el) { - $(el) + return $(el) .attr('unselectable', 'on') .css('MozUserSelect', 'none') .bind('selectstart.ui', function() { return false; }); }, enableSelection: function(el) { - $(el) + return $(el) .attr('unselectable', 'off') .css('MozUserSelect', '') .unbind('selectstart.ui');