Skip to content

Commit c1b7912

Browse files
committed
Tweak JSHint options, make IIFE syntax valid
1 parent b4ec5df commit c1b7912

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

grunt.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,13 @@ module.exports = function(grunt) {
4141
options: {
4242
curly: false,
4343
eqeqeq: true,
44-
immed: false,
44+
immed: true,
4545
latedef: true,
4646
newcap: true,
4747
noarg: true,
4848
sub: true,
4949
undef: true,
5050
boss: true,
51-
eqnull: true,
5251
browser: true
5352
},
5453
globals: {

src/jquery.stellar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
}
7373

7474
return prefix;
75-
})(),
75+
}()),
7676

7777
setTransform = function($elem, val, dimension /* 'X' or 'Y' */) {
7878
var currentTransform = $elem.css(vendorPrefix + 'transform');
@@ -547,7 +547,7 @@
547547
function(callback, element){
548548
window.setTimeout(callback, 1000 / 60);
549549
};
550-
})();
550+
}());
551551

552552
this._animationLoop = function(){
553553
requestAnimFrame(self._animationLoop);
@@ -589,4 +589,4 @@
589589

590590
//Expose the plugin class so it can be modified
591591
window.Stellar = Plugin;
592-
})(jQuery, window, document);
592+
}(jQuery, window, document));

test/jquery.stellar_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838

3939
return prefix;
40-
})()
40+
}())
4141
};
4242

4343
module('$.fn.stellar');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy