ui core: enableSelection, disableSelection: Removed selectstart event filters from enableDisable and disableSelection as these are general utility convenience methods intended to prevent native browser text selection not jQuery UI Selectable selection. Fixes #5477 - core: enableSelection and disableSelection should only prevent native browser text selection

This commit is contained in:
Richard D. Worth 2010-04-02 17:09:37 -04:00
parent 9ba45f3b76
commit d38e20a0d3

View File

@ -118,15 +118,13 @@ $.fn.extend({
enableSelection: function() {
return this
.attr('unselectable', 'off')
.css('MozUserSelect', '')
.unbind('selectstart.ui');
.css('MozUserSelect', '');
},
disableSelection: function() {
return this
.attr('unselectable', 'on')
.css('MozUserSelect', 'none')
.bind('selectstart.ui', function() { return false; });
.css('MozUserSelect', 'none');
},
scrollParent: function() {