]> source.dussan.org Git - jquery-ui.git/commitdiff
Mouse: Don't prevent text selection in IE.
authorScott González <scott.gonzalez@gmail.com>
Tue, 29 Dec 2009 01:32:44 +0000 (01:32 +0000)
committerScott González <scott.gonzalez@gmail.com>
Tue, 29 Dec 2009 01:32:44 +0000 (01:32 +0000)
Fixes #4773 - Enable text selection in Internet Explorer.

Patch provided by stakach.

ui/jquery.ui.mouse.js

index 43fe2fbc544ac5dd361df957d3b32578184661ad..f115b33344275d2dda5c267b83fc21760cd06d86 100644 (file)
@@ -28,12 +28,6 @@ $.ui.mouse = {
                                }
                        });
 
-               // Prevent text selection in IE
-               if ($.browser.msie) {
-                       this._mouseUnselectable = this.element.attr('unselectable');
-                       this.element.attr('unselectable', 'on');
-               }
-
                this.started = false;
        },
 
@@ -41,10 +35,6 @@ $.ui.mouse = {
        // other instances of mouse
        _mouseDestroy: function() {
                this.element.unbind('.'+this.widgetName);
-
-               // Restore text selection in IE
-               ($.browser.msie
-                       && this.element.attr('unselectable', this._mouseUnselectable));
        },
 
        _mouseDown: function(event) {