Mouse: Don't prevent text selection in IE.

Fixes #4773 - Enable text selection in Internet Explorer.

Patch provided by stakach.
This commit is contained in:
Scott González
2009-12-29 01:32:44 +00:00
parent 0c35c1135f
commit eb15a50a72

10
ui/jquery.ui.mouse.js vendored
View 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) {