diff options
author | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-07 15:01:42 +0200 |
---|---|---|
committer | Bruno Wagner <bwagner@thoughtworks.com> | 2014-10-07 15:01:54 +0200 |
commit | 6299531f4c8f7daa1b4afab45d0439f635b03982 (patch) | |
tree | 92b2876e732731e5219e50ef7719c72ec2cb478a /web-ui/app/js/mixins | |
parent | 88abefd3e62fb65a08dde62a7d7e4ce1fa22f563 (diff) |
Fixed jshint errors
Diffstat (limited to 'web-ui/app/js/mixins')
-rw-r--r-- | web-ui/app/js/mixins/with_feature_toggle.js | 2 | ||||
-rw-r--r-- | web-ui/app/js/mixins/with_hide_and_show.js | 1 | ||||
-rw-r--r-- | web-ui/app/js/mixins/with_mail_edit_base.js | 6 | ||||
-rw-r--r-- | web-ui/app/js/mixins/with_mail_tagging.js | 5 |
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; } |