(js) Fix possible errors (help from jsjint)

This commit is contained in:
Francis Lachapelle
2015-07-24 16:14:53 -04:00
parent e064dc4a46
commit dc9a0896e5
27 changed files with 166 additions and 157 deletions
@@ -317,7 +317,7 @@
Message.prototype.$sendMDN = function() {
this.shouldAskReceipt = 0;
return Message.$$resource.post(this.id, 'sendMDN');
}
};
/**
* @function $deleteAttachment
@@ -331,12 +331,13 @@
Message.$$resource.post(this.$absolutePath({asDraft: true}), action).then(function(data) {
Message.$timeout(function() {
_this.editable.attachmentAttrs = _.filter(_this.editable.attachmentAttrs, function(attachment) {
return attachment.filename != filename});
return attachment.filename != filename;
});
}, function() {
// TODO: show toast
});
});
}
};
/**
* @function $markAsFlaggedOrUnflagged
@@ -356,7 +357,7 @@
_this.isflagged = !_this.isflagged;
});
});
}
};
/**
* @function $reload