mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
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:
10
ui/jquery.ui.mouse.js
vendored
10
ui/jquery.ui.mouse.js
vendored
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user