Skip to content
Permalink
Browse files

Mouse: Don't prevent text selection in IE.

Fixes #4773 - Enable text selection in Internet Explorer.

Patch provided by stakach.
  • Loading branch information...
scottgonzalez committed Dec 29, 2009
1 parent 0c35c11 commit eb15a50a7228ea69273bce757bb7637c8ad3f843
Showing with 0 additions and 10 deletions.
  1. +0 −10 ui/jquery.ui.mouse.js
@@ -28,23 +28,13 @@ $.ui.mouse = {
}
});

// Prevent text selection in IE
if ($.browser.msie) {
this._mouseUnselectable = this.element.attr('unselectable');
this.element.attr('unselectable', 'on');
}

this.started = false;
},

// TODO: make sure destroying one instance of mouse doesn't mess with
// 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) {

0 comments on commit eb15a50

Please sign in to comment.
You can’t perform that action at this time.