FIX: JSHint errors

This commit is contained in:
Robin Ward 2013-09-13 12:29:57 -04:00
parent 7d9a84b496
commit 5d8cfd69f7
3 changed files with 5 additions and 5 deletions

View File

@ -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();
}
},

View File

@ -69,7 +69,7 @@ Discourse.ComposerMessagesController = Ember.ArrayController.extend({
var self = this;
this.get('queuedForTyping').forEach(function (msg) {
self.popup(msg);
})
});
},
/**

View File

@ -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({
});
}
})
});