Skip to content
Permalink
Browse files

core: enableSelection/disableSelection now return the chain (implemen…

…ts #3174)
  • Loading branch information...
Paul Bakaus
Paul Bakaus committed Sep 18, 2008
1 parent 9c0942d commit b73f093894364a937d819d789b5c65673baaac85
Showing with 2 additions and 2 deletions.
  1. +2 −2 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');

0 comments on commit b73f093

Please sign in to comment.
You can’t perform that action at this time.