From 2ef4ac88983f3bc13639b8806fc77a9f08e92a53 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Fri, 24 Oct 2014 14:38:06 +0200 Subject: fixing jshint warnings --- .../app/js/mail_view/ui/recipients/recipients_input.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'web-ui') 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 a74e871e..e9211d85 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 @@ -71,7 +71,7 @@ define([ filter: extractContactNames } }); - if(features.isEnabled('contacts')) { + if (features.isEnabled('contacts')) { emailCompleter.initialize(); } return emailCompleter; @@ -104,21 +104,21 @@ define([ if (isEnterAddressKey(keyPressed)) { this.tokenizeRecipient(event); - if((keyPressed !== 9 /* tab */)) { + if ((keyPressed !== 9 /* tab */)) { event.preventDefault(); } } }; - this.tokenizeRecipient = function (event) { - if (_.isEmpty(this.$node.val())) { - return; - } + this.tokenizeRecipient = function (event) { + if (_.isEmpty(this.$node.val())) { + return; + } - this.recipientSelected(null, {value: this.$node.val() }); - event.preventDefault(); - } + this.recipientSelected(null, {value: this.$node.val() }); + event.preventDefault(); + }; this.recipientSelected = function (event, data) { var value = (data && data.value) || this.$node.val(); -- cgit v1.2.3