]> source.dussan.org Git - jquery-ui.git/commitdiff
ui core: enableSelection, disableSelection: Removed selectstart event filters from...
authorRichard D. Worth <rdworth@gmail.com>
Fri, 2 Apr 2010 21:09:37 +0000 (17:09 -0400)
committerRichard D. Worth <rdworth@gmail.com>
Fri, 2 Apr 2010 21:09:37 +0000 (17:09 -0400)
ui/jquery.ui.core.js

index 197a1aba9173841db89c9c1ff138f9f186cfeecd..c0eab46b4d44e7ee99e189e6c24bc47c420b0af8 100644 (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() {