keep jshint happy :) need to reconfigure my vim jshint ...

This commit is contained in:
Sam 2013-04-12 18:04:35 +10:00
parent e969eb14e8
commit 0054416786
3 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ Discourse.ActionSummary = Discourse.Model.extend({
this.set('acted', true);
this.set('count', this.get('count') + 1);
this.set('can_act', false);
this.set('can_undo', action != 'notify_moderators' && action != 'notify_user');
this.set('can_undo', action !== 'notify_moderators' && action !== 'notify_user');
// Add ourselves to the users who liked it if present
if (this.present('users')) {

View File

@ -112,7 +112,7 @@ Discourse.Post = Discourse.Model.extend({
flagsAvailable: (function() {
var _this = this;
flags = Discourse.get('site.flagTypes').filter(function(item) {
var flags = Discourse.get('site.flagTypes').filter(function(item) {
return _this.get("actionByName." + (item.get('name_key')) + ".can_act");
});
return flags;

View File

@ -47,7 +47,7 @@ Discourse.FlagView = Discourse.ModalBodyView.extend({
var action = this.get('selected');
var postAction = this.get('post.actionByName.' + (action.get('name_key')));
actionType = Discourse.get('site').postActionTypeById(this.get('postActionTypeId'));
var actionType = Discourse.get('site').postActionTypeById(this.get('postActionTypeId'));
if (postAction) {
postAction.act({
message: action.get('message')