summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mixins
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/app/js/mixins')
-rw-r--r--web-ui/app/js/mixins/with_feature_toggle.js2
-rw-r--r--web-ui/app/js/mixins/with_hide_and_show.js1
-rw-r--r--web-ui/app/js/mixins/with_mail_edit_base.js6
-rw-r--r--web-ui/app/js/mixins/with_mail_tagging.js5
4 files changed, 10 insertions, 4 deletions
diff --git a/web-ui/app/js/mixins/with_feature_toggle.js b/web-ui/app/js/mixins/with_feature_toggle.js
index 1b364457..7336b74a 100644
--- a/web-ui/app/js/mixins/with_feature_toggle.js
+++ b/web-ui/app/js/mixins/with_feature_toggle.js
@@ -14,6 +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/>.
*/
+/* global _ */
+'use strict';
define(['features'],
function(features) {
diff --git a/web-ui/app/js/mixins/with_hide_and_show.js b/web-ui/app/js/mixins/with_hide_and_show.js
index 7c2a92c4..c8902f61 100644
--- a/web-ui/app/js/mixins/with_hide_and_show.js
+++ b/web-ui/app/js/mixins/with_hide_and_show.js
@@ -15,6 +15,7 @@
* along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
*/
define(function(require) {
+ 'use strict';
function withHideAndShow() {
this.hide = function () {
diff --git a/web-ui/app/js/mixins/with_mail_edit_base.js b/web-ui/app/js/mixins/with_mail_edit_base.js
index 2882758c..181af736 100644
--- a/web-ui/app/js/mixins/with_mail_edit_base.js
+++ b/web-ui/app/js/mixins/with_mail_edit_base.js
@@ -59,9 +59,9 @@ define(
};
function thereAreRecipientsToDisplay() {
- return this.attr.recipientValues.to
- && this.attr.recipientValues.cc
- && !_.isEmpty(this.attr.recipientValues.to.concat(this.attr.recipientValues.cc));
+ return this.attr.recipientValues.to &&
+ this.attr.recipientValues.cc &&
+ !_.isEmpty(this.attr.recipientValues.to.concat(this.attr.recipientValues.cc));
}
this.render = function(template, context) {
diff --git a/web-ui/app/js/mixins/with_mail_tagging.js b/web-ui/app/js/mixins/with_mail_tagging.js
index 6ea047ed..f5bd7840 100644
--- a/web-ui/app/js/mixins/with_mail_tagging.js
+++ b/web-ui/app/js/mixins/with_mail_tagging.js
@@ -15,6 +15,9 @@
* along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
*/
/*global Bloodhound */
+/*global _ */
+/*global Handlebars */
+'use strict';
define(
['page/events', 'features'],
function (events, features) {
@@ -63,7 +66,7 @@ define(
this.after('displayMail', function () {
this.on(this.select('newTagInput'), 'typeahead:selected typeahead:autocompleted', this.createNewTag);
});
- };
+ }
return withMailTagging;
}