core: enableSelection/disableSelection now return the chain (implements #3174)

This commit is contained in:
Paul Bakaus 2008-09-18 09:54:04 +00:00
parent 9c0942d14f
commit b73f093894

View File

@ -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');