From: Luigi Pinca Date: Fri, 24 Jul 2015 12:38:07 +0000 (+0200) Subject: enabled strict mode in all modules X-Git-Url: https://git.saalbach.dev/?a=commitdiff_plain;h=73208ec11c20e736e4b987800cdc8d5746396d91;p=binbsis50.git enabled strict mode in all modules --- diff --git a/app.js b/app.js index 3d039a4..8c6e882 100644 --- a/app.js +++ b/app.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/lib/captcha.js b/lib/captcha.js index 01d93ab..7d89d6b 100644 --- a/lib/captcha.js +++ b/lib/captcha.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/lib/email/mailer.js b/lib/email/mailer.js index a99b147..3ef59c4 100644 --- a/lib/email/mailer.js +++ b/lib/email/mailer.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/lib/match.js b/lib/match.js index d1ef256..e548ad9 100644 --- a/lib/match.js +++ b/lib/match.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Check if the edit distance between two strings is smaller than a threshold * `k` defined as the natural logarithm of the length of the first string diff --git a/lib/middleware/ban-handler.js b/lib/middleware/ban-handler.js index 4af0efc..a561c08 100644 --- a/lib/middleware/ban-handler.js +++ b/lib/middleware/ban-handler.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/lib/middleware/error-handler.js b/lib/middleware/error-handler.js index 4e6ee90..6eb1936 100644 --- a/lib/middleware/error-handler.js +++ b/lib/middleware/error-handler.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/lib/prng.js b/lib/prng.js index be9cc80..bceeacc 100644 --- a/lib/prng.js +++ b/lib/prng.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/lib/redis-clients.js b/lib/redis-clients.js index 6f0a6fa..dda178f 100644 --- a/lib/redis-clients.js +++ b/lib/redis-clients.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/lib/rooms.js b/lib/rooms.js index 3b7c860..91b9cd3 100644 --- a/lib/rooms.js +++ b/lib/rooms.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/lib/sparks.js b/lib/sparks.js index 13b4565..80d6ef9 100644 --- a/lib/sparks.js +++ b/lib/sparks.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/lib/stats.js b/lib/stats.js index 43ce3e6..01ad741 100644 --- a/lib/stats.js +++ b/lib/stats.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/lib/user.js b/lib/user.js index 0f79218..9c0933c 100644 --- a/lib/user.js +++ b/lib/user.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Expose the constructor. */ diff --git a/lib/utils.js b/lib/utils.js index e1bf9fa..9f92af9 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/public/js/app.js b/public/js/app.js index 76ff4c5..ec6845d 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,4 +1,5 @@ (function() { + 'use strict'; var $cassettewheels = $('#cassette .wheel') , $chat = $('#chat') diff --git a/public/js/home.js b/public/js/home.js index f72b98e..98ff0d1 100644 --- a/public/js/home.js +++ b/public/js/home.js @@ -1,4 +1,6 @@ (function() { + 'use strict'; + $.get('/artworks', function(data) { $('.thumbnail').each(function() { var urls = data[$(this).attr('href')]; diff --git a/public/js/leaderboards.js b/public/js/leaderboards.js index 929c1a5..02a2014 100644 --- a/public/js/leaderboards.js +++ b/public/js/leaderboards.js @@ -1,4 +1,6 @@ (function() { + 'use strict'; + var appendResults = function(data, $leaderboard, offset, type) { for (var i = 0; i < data.length; i += 2) { var col1 = '' + (++offset) + '' diff --git a/routes/site.js b/routes/site.js index 0b5e72d..5b63ea0 100644 --- a/routes/site.js +++ b/routes/site.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/routes/user.js b/routes/user.js index 476d5c7..fdadb40 100644 --- a/routes/user.js +++ b/routes/user.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */ diff --git a/util/artist-ids.js b/util/artist-ids.js index c15c275..04ee426 100644 --- a/util/artist-ids.js +++ b/util/artist-ids.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Expose an object with some iTunes artist IDs. */ diff --git a/util/load_sample_tracks.js b/util/load_sample_tracks.js index 3c36549..21604cf 100644 --- a/util/load_sample_tracks.js +++ b/util/load_sample_tracks.js @@ -1,3 +1,5 @@ +'use strict'; + /** * Module dependencies. */