Skip to content

Commit

Permalink
Mouse: Don't prevent text selection in IE.
Browse files Browse the repository at this point in the history
Fixes #4773 - Enable text selection in Internet Explorer.

Patch provided by stakach.
  • Loading branch information
scottgonzalez committed Dec 29, 2009
1 parent 0c35c11 commit eb15a50
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions ui/jquery.ui.mouse.js
Expand Up @@ -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) {
Expand Down

0 comments on commit eb15a50

Please sign in to comment.