Skip to content

Commit d6c6b7d

Browse files
committed
Dev: make sure all files can pass JSHint!
1 parent 00e92e1 commit d6c6b7d

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

grunt.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -285,10 +285,7 @@ grunt.initConfig({
285285
})
286286
},
287287
lint: {
288-
ui: grunt.file.expandFiles( "ui/*.js" ).filter(function( file ) {
289-
// TODO remove items from this list once rewritten
290-
return !( /(mouse)\.js$/ ).test( file );
291-
}),
288+
ui: "ui/*.js",
292289
grunt: [ "grunt.js", "build/**/*.js" ],
293290
tests: "tests/unit/**/*.js"
294291
},

ui/jquery.ui.mouse.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
(function( $, undefined ) {
1515

1616
var mouseHandled = false;
17-
$( document ).mouseup( function( e ) {
17+
$( document ).mouseup( function() {
1818
mouseHandled = false;
1919
});
2020

@@ -111,7 +111,7 @@ $.widget("ui.mouse", {
111111

112112
_mouseMove: function(event) {
113113
// IE mouseup check - mouseup happened when mouse was out of window
114-
if ($.ui.ie && !(document.documentMode >= 9) && !event.button) {
114+
if ($.ui.ie && ( !document.documentMode || document.documentMode < 9 ) && !event.button) {
115115
return this._mouseUp(event);
116116
}
117117

@@ -155,15 +155,15 @@ $.widget("ui.mouse", {
155155
);
156156
},
157157

158-
_mouseDelayMet: function(event) {
158+
_mouseDelayMet: function(/* event */) {
159159
return this.mouseDelayMet;
160160
},
161161

162162
// These are placeholder methods, to be overriden by extending plugin
163-
_mouseStart: function(event) {},
164-
_mouseDrag: function(event) {},
165-
_mouseStop: function(event) {},
166-
_mouseCapture: function(event) { return true; }
163+
_mouseStart: function(/* event */) {},
164+
_mouseDrag: function(/* event */) {},
165+
_mouseStop: function(/* event */) {},
166+
_mouseCapture: function(/* event */) { return true; }
167167
});
168168

169169
})(jQuery);

0 commit comments

Comments
 (0)