diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2012-11-09 17:30:43 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2012-11-09 17:30:43 -0500 |
commit | d6c6b7dc3381432f50212b4f458931b2521ecb56 (patch) | |
tree | 157024021a50114110a65fa656c50037bc5fbf80 /ui/jquery.ui.mouse.js | |
parent | 00e92e16b4f4a9f30cb12bbdc23aeba97d17203d (diff) | |
download | jquery-ui-d6c6b7dc3381432f50212b4f458931b2521ecb56.tar.gz jquery-ui-d6c6b7dc3381432f50212b4f458931b2521ecb56.zip |
Dev: make sure all files can pass JSHint!
Diffstat (limited to 'ui/jquery.ui.mouse.js')
-rw-r--r-- | ui/jquery.ui.mouse.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/jquery.ui.mouse.js b/ui/jquery.ui.mouse.js index cdc063f91..6abd5ceaf 100644 --- a/ui/jquery.ui.mouse.js +++ b/ui/jquery.ui.mouse.js @@ -14,7 +14,7 @@ (function( $, undefined ) { var mouseHandled = false; -$( document ).mouseup( function( e ) { +$( document ).mouseup( function() { mouseHandled = false; }); @@ -111,7 +111,7 @@ $.widget("ui.mouse", { _mouseMove: function(event) { // IE mouseup check - mouseup happened when mouse was out of window - if ($.ui.ie && !(document.documentMode >= 9) && !event.button) { + if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) { return this._mouseUp(event); } @@ -155,15 +155,15 @@ $.widget("ui.mouse", { ); }, - _mouseDelayMet: function(event) { + _mouseDelayMet: function(/* event */) { return this.mouseDelayMet; }, // These are placeholder methods, to be overriden by extending plugin - _mouseStart: function(event) {}, - _mouseDrag: function(event) {}, - _mouseStop: function(event) {}, - _mouseCapture: function(event) { return true; } + _mouseStart: function(/* event */) {}, + _mouseDrag: function(/* event */) {}, + _mouseStop: function(/* event */) {}, + _mouseCapture: function(/* event */) { return true; } }); })(jQuery); |