diff options
author | Richard D. Worth <rdworth@gmail.com> | 2010-04-02 17:09:37 -0400 |
---|---|---|
committer | Richard D. Worth <rdworth@gmail.com> | 2010-04-02 17:09:37 -0400 |
commit | d38e20a0d3b42ad9825fe5a4bf1e1ccf842fdc04 (patch) | |
tree | d515d24e354d9060f72b7eed0931dc1b4dd100d4 /ui/jquery.ui.core.js | |
parent | 9ba45f3b76bba7daeb341b2c44fc1ad17ac412ab (diff) | |
download | jquery-ui-d38e20a0d3b42ad9825fe5a4bf1e1ccf842fdc04.tar.gz jquery-ui-d38e20a0d3b42ad9825fe5a4bf1e1ccf842fdc04.zip |
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
Diffstat (limited to 'ui/jquery.ui.core.js')
-rw-r--r-- | ui/jquery.ui.core.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index 197a1aba9..c0eab46b4 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -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() { |