aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.mouse.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-11-09 17:30:43 -0500
committerMike Sherov <mike.sherov@gmail.com>2012-11-09 17:30:43 -0500
commitd6c6b7dc3381432f50212b4f458931b2521ecb56 (patch)
tree157024021a50114110a65fa656c50037bc5fbf80 /ui/jquery.ui.mouse.js
parent00e92e16b4f4a9f30cb12bbdc23aeba97d17203d (diff)
downloadjquery-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.js14
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);