summaryrefslogtreecommitdiff
path: root/web-ui/app/js/foundation
diff options
context:
space:
mode:
authorGiovane <giovaneliberato@gmail.com>2015-12-30 16:03:27 -0200
committerGiovane <giovaneliberato@gmail.com>2015-12-30 16:03:27 -0200
commit111205c8cd74d553201b42db3041d870ae833165 (patch)
tree4a2a4f5158e45b4802c06336d792f2905c45f020 /web-ui/app/js/foundation
parentf8418b0a41298777834e00f4276b2a34d8c6ad39 (diff)
Updates jshint to latest version #565
- Change 'use strict' mode to function-level - Update needed files
Diffstat (limited to 'web-ui/app/js/foundation')
-rw-r--r--web-ui/app/js/foundation/initialize_foundation.js6
-rw-r--r--web-ui/app/js/foundation/off_canvas.js3
2 files changed, 5 insertions, 4 deletions
diff --git a/web-ui/app/js/foundation/initialize_foundation.js b/web-ui/app/js/foundation/initialize_foundation.js
index b382a168..42405dfe 100644
--- a/web-ui/app/js/foundation/initialize_foundation.js
+++ b/web-ui/app/js/foundation/initialize_foundation.js
@@ -1,3 +1,5 @@
-'use strict';
-$(document).foundation();
+(function() {
+ 'use strict';
+ $(document).foundation();
+})();
diff --git a/web-ui/app/js/foundation/off_canvas.js b/web-ui/app/js/foundation/off_canvas.js
index 805dfab8..66334470 100644
--- a/web-ui/app/js/foundation/off_canvas.js
+++ b/web-ui/app/js/foundation/off_canvas.js
@@ -14,9 +14,8 @@
* You should have received a copy of the GNU Affero General Public License
* along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
*/
-'use strict';
define(['flight/lib/component', 'page/events'], function (defineComponent, events) {
-
+ 'use strict';
return defineComponent(function() {
this.closeSlider = function (ev){