From 5d8cfd69f705b8d836b9ec050ba665ef6fa193ce Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 13 Sep 2013 12:29:57 -0400 Subject: [PATCH] FIX: JSHint errors --- .../discourse/controllers/composer_controller.js | 2 +- .../discourse/controllers/composer_messages_controller.js | 2 +- app/assets/javascripts/discourse/models/composer_message.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/composer_controller.js b/app/assets/javascripts/discourse/controllers/composer_controller.js index 156cf85e2e3..e040f094dd2 100644 --- a/app/assets/javascripts/discourse/controllers/composer_controller.js +++ b/app/assets/javascripts/discourse/controllers/composer_controller.js @@ -127,7 +127,7 @@ Discourse.ComposerController = Discourse.Controller.extend({ if (this.present('model.reply')) { // Notify the composer messages controller that a reply has been typed. Some // messages only appear after typing. - this.get('controllers.composerMessages').typedReply() + this.get('controllers.composerMessages').typedReply(); } }, diff --git a/app/assets/javascripts/discourse/controllers/composer_messages_controller.js b/app/assets/javascripts/discourse/controllers/composer_messages_controller.js index 8dfe43e420d..0b3e7fc3dbf 100644 --- a/app/assets/javascripts/discourse/controllers/composer_messages_controller.js +++ b/app/assets/javascripts/discourse/controllers/composer_messages_controller.js @@ -69,7 +69,7 @@ Discourse.ComposerMessagesController = Ember.ArrayController.extend({ var self = this; this.get('queuedForTyping').forEach(function (msg) { self.popup(msg); - }) + }); }, /** diff --git a/app/assets/javascripts/discourse/models/composer_message.js b/app/assets/javascripts/discourse/models/composer_message.js index 4381df9b4d2..fc445340efe 100644 --- a/app/assets/javascripts/discourse/models/composer_message.js +++ b/app/assets/javascripts/discourse/models/composer_message.js @@ -22,8 +22,8 @@ Discourse.ComposerMessage.reopenClass({ topicId = composer.get('topic.id'), postId = composer.get('post.id'); - if (topicId) { data.topic_id = topicId }; - if (postId) { data.post_id = postId }; + if (topicId) { data.topic_id = topicId; } + if (postId) { data.post_id = postId; } return Discourse.ajax('/composer-messages', { data: data }).then(function (messages) { return messages.map(function (message) { @@ -32,4 +32,4 @@ Discourse.ComposerMessage.reopenClass({ }); } -}) \ No newline at end of file +}); \ No newline at end of file