Skip to content

Commit

Permalink
Dev: make sure all files can pass JSHint!
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesherov committed Nov 9, 2012
1 parent 00e92e1 commit d6c6b7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
5 changes: 1 addition & 4 deletions grunt.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,10 +285,7 @@ grunt.initConfig({
})
},
lint: {
ui: grunt.file.expandFiles( "ui/*.js" ).filter(function( file ) {
// TODO remove items from this list once rewritten
return !( /(mouse)\.js$/ ).test( file );
}),
ui: "ui/*.js",
grunt: [ "grunt.js", "build/**/*.js" ],
tests: "tests/unit/**/*.js"
},
Expand Down
14 changes: 7 additions & 7 deletions ui/jquery.ui.mouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(function( $, undefined ) {

var mouseHandled = false;
$( document ).mouseup( function( e ) {
$( document ).mouseup( function() {
mouseHandled = false;
});

Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);

0 comments on commit d6c6b7d

Please sign in to comment.