aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/ui.core.js4
1 files changed, 2 insertions, 2 deletions
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');