From 2ba561a03f8c20d8c13cc27e30663d31ff71106b Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 3 Feb 2012 09:15:38 +0000 Subject: [PATCH] add use strict to all js files --- static/js/pandora/UI.js | 1 + static/js/pandora/annotationDialog.js | 3 ++- static/js/pandora/item.js | 1 + static/js/pandora/list.js | 1 + static/js/pandora/menu.js | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/UI.js b/static/js/pandora/UI.js index f820a0ca..8f309a8f 100644 --- a/static/js/pandora/UI.js +++ b/static/js/pandora/UI.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.UI = (function() { diff --git a/static/js/pandora/annotationDialog.js b/static/js/pandora/annotationDialog.js index 135a7f9e..0d16b870 100644 --- a/static/js/pandora/annotationDialog.js +++ b/static/js/pandora/annotationDialog.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.annotationDialog = function(layer) { var $dialog = Ox.Dialog({ @@ -40,4 +41,4 @@ pandora.ui.annotationDialog = function(layer) { title: Ox.toTitleCase(layer) }); return $dialog; -}; \ No newline at end of file +}; diff --git a/static/js/pandora/item.js b/static/js/pandora/item.js index 3cb5fd7f..b6681c7e 100644 --- a/static/js/pandora/item.js +++ b/static/js/pandora/item.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.item = function() { diff --git a/static/js/pandora/list.js b/static/js/pandora/list.js index 1aaed7ef..dc5c138a 100644 --- a/static/js/pandora/list.js +++ b/static/js/pandora/list.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.list = function() { var that, diff --git a/static/js/pandora/menu.js b/static/js/pandora/menu.js index e6e0094b..bfd9f6f5 100644 --- a/static/js/pandora/menu.js +++ b/static/js/pandora/menu.js @@ -1,4 +1,5 @@ // vim: et:ts=4:sw=4:sts=4:ft=javascript +'use strict'; pandora.ui.mainMenu = function() { var isAdmin = pandora.user.level == 'admin',