Skip to content

Commit d38e20a

Browse files
committed
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
1 parent 9ba45f3 commit d38e20a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ui/jquery.ui.core.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,13 @@ $.fn.extend({
118118
enableSelection: function() {
119119
return this
120120
.attr('unselectable', 'off')
121-
.css('MozUserSelect', '')
122-
.unbind('selectstart.ui');
121+
.css('MozUserSelect', '');
123122
},
124123

125124
disableSelection: function() {
126125
return this
127126
.attr('unselectable', 'on')
128-
.css('MozUserSelect', 'none')
129-
.bind('selectstart.ui', function() { return false; });
127+
.css('MozUserSelect', 'none');
130128
},
131129

132130
scrollParent: function() {

0 commit comments

Comments
 (0)