From b73f093894364a937d819d789b5c65673baaac85 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Thu, 18 Sep 2008 09:54:04 +0000 Subject: core: enableSelection/disableSelection now return the chain (implements #3174) --- ui/ui.core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui') 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'); -- cgit v1.2.3