From 111205c8cd74d553201b42db3041d870ae833165 Mon Sep 17 00:00:00 2001 From: Giovane Date: Wed, 30 Dec 2015 16:03:27 -0200 Subject: Updates jshint to latest version #565 - Change 'use strict' mode to function-level - Update needed files --- web-ui/app/js/mail_view/ui/mail_view.js | 2 +- web-ui/app/js/mail_view/ui/recipients/recipient.js | 2 +- web-ui/app/js/mail_view/ui/recipients/recipients_input.js | 2 +- web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js | 2 +- web-ui/app/js/mail_view/ui/send_button.js | 3 +-- 5 files changed, 5 insertions(+), 6 deletions(-) (limited to 'web-ui/app/js/mail_view/ui') diff --git a/web-ui/app/js/mail_view/ui/mail_view.js b/web-ui/app/js/mail_view/ui/mail_view.js index 01db6c4f..76c5b7d9 100644 --- a/web-ui/app/js/mail_view/ui/mail_view.js +++ b/web-ui/app/js/mail_view/ui/mail_view.js @@ -15,7 +15,6 @@ * along with Pixelated. If not, see . */ -'use strict'; define( [ 'flight/lib/component', @@ -29,6 +28,7 @@ define( ], function (defineComponent, templates, mailActions, viewHelpers, withHideAndShow, withMailTagging, events, i18n) { + 'use strict'; return defineComponent(mailView, mailActions, withHideAndShow, withMailTagging); diff --git a/web-ui/app/js/mail_view/ui/recipients/recipient.js b/web-ui/app/js/mail_view/ui/recipients/recipient.js index abfbc8e4..c13a52b1 100644 --- a/web-ui/app/js/mail_view/ui/recipients/recipient.js +++ b/web-ui/app/js/mail_view/ui/recipients/recipient.js @@ -14,7 +14,6 @@ * You should have received a copy of the GNU Affero General Public License * along with Pixelated. If not, see . */ -'use strict'; define( [ @@ -24,6 +23,7 @@ define( ], function (defineComponent, templates, events) { + 'use strict'; return defineComponent(recipient); diff --git a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js index db0b10f7..62bc9c4a 100644 --- a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js +++ b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js @@ -14,7 +14,6 @@ * You should have received a copy of the GNU Affero General Public License * along with Pixelated. If not, see . */ -'use strict'; define([ 'flight/lib/component', @@ -22,6 +21,7 @@ define([ 'features' ], function (defineComponent, events, features) { + 'use strict'; function recipientsInput() { var EXIT_KEY_CODE_MAP = { diff --git a/web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js b/web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js index 6c52c52e..624ac4f5 100644 --- a/web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js +++ b/web-ui/app/js/mail_view/ui/recipients/recipients_iterator.js @@ -15,8 +15,8 @@ * along with Pixelated. If not, see . */ -'use strict'; define(['helpers/iterator'], function (Iterator) { + 'use strict'; return RecipientsIterator; diff --git a/web-ui/app/js/mail_view/ui/send_button.js b/web-ui/app/js/mail_view/ui/send_button.js index b16ea055..b1f35906 100644 --- a/web-ui/app/js/mail_view/ui/send_button.js +++ b/web-ui/app/js/mail_view/ui/send_button.js @@ -14,8 +14,6 @@ * You should have received a copy of the GNU Affero General Public License * along with Pixelated. If not, see . */ -'use strict'; - define([ 'flight/lib/component', 'flight/lib/utils', @@ -23,6 +21,7 @@ define([ 'helpers/view_helper' ], function (defineComponent, utils, events, viewHelper) { + 'use strict'; return defineComponent(sendButton); -- cgit v1.2.3