Skip to content

Commit

Permalink
ui core: enableSelection, disableSelection: Removed selectstart event…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
rdworth committed Apr 2, 2010
1 parent 9ba45f3 commit d38e20a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui/jquery.ui.core.js
Expand Up @@ -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() {
Expand Down

0 comments on commit d38e20a

Please sign in to comment.