]> source.dussan.org Git - jquery-ui.git/commitdiff
Mouse: better check for not IE9 or greater in case mode was set by X-UA-Compatible...
authorRichard D. Worth <rdworth@gmail.com>
Fri, 15 Oct 2010 08:04:39 +0000 (01:04 -0700)
committerRichard D. Worth <rdworth@gmail.com>
Fri, 15 Oct 2010 08:04:39 +0000 (01:04 -0700)
ui/jquery.ui.mouse.js

index 8e6cb93f97cfa154443022ee584e6de15f202c59..d0c82f83f2d67dc7b5acfd29cbe9151debd393fa 100644 (file)
@@ -93,7 +93,7 @@ $.widget("ui.mouse", {
 
        _mouseMove: function(event) {
                // IE mouseup check - mouseup happened when mouse was out of window
-               if ($.browser.msie && parseInt($.browser.version, 10) < 9 && !event.button) {
+               if ($.browser.msie && !(document.documentMode >= 9) && !event.button) {
                        return this._mouseUp(event);
                }