Fix lint errors.

This commit is contained in:
XhmikosR
2013-11-15 20:39:32 +02:00
parent 055ba147b7
commit 0f09166ff0
2 changed files with 17 additions and 17 deletions
+11 -11
View File
@@ -21,18 +21,18 @@ module.exports = function(grunt) {
}
},
connect: {
server: {
options: {
hostname: '*',
keepalive: true,
middleware: function(connect, options) {
return [
connect.static(options.base),
connect.directory(options.base)
];
}
server: {
options: {
hostname: '*',
keepalive: true,
middleware: function(connect, options) {
return [
connect.static(options.base),
connect.directory(options.base)
];
}
}
}
}
}
});
+6 -6
View File
@@ -93,12 +93,12 @@
// New school wheel delta (wheel event)
if ( 'deltaY' in orgEvent ) {
deltaY = orgEvent.deltaY * -1;
delta = deltaY;
deltaY = orgEvent.deltaY * -1;
delta = deltaY;
}
if ( 'deltaX' in orgEvent ) {
deltaX = orgEvent.deltaX;
if ( deltaY === 0 ) { delta = deltaX * -1; }
deltaX = orgEvent.deltaX;
if ( deltaY === 0 ) { delta = deltaX * -1; }
}
// No change actually happened, no reason to go any further
@@ -107,7 +107,7 @@
// Store lowest absolute delta to normalize the delta values
absDelta = Math.max( Math.abs(deltaY), Math.abs(deltaX) );
if ( !lowestDelta || absDelta < lowestDelta ) {
lowestDelta = absDelta;
lowestDelta = absDelta;
}
// Get a whole, normalized value for the deltas
@@ -134,7 +134,7 @@
}
function nullLowestDelta() {
lowestDelta = null;
lowestDelta = null;
}
}));