私のEメールオブジェクト(私自身のカスタムクラス)は、関係が時間どおりに設定されていませんが、書き込まれています。これを適切にチェーンする方法はありますか?
// Create new Email model and friend it
addFriendOnEnter: function(e) {
var self = this;
if (e.keyCode != 13) return;
var email = this.emails.create({
email: this.emailInput.val(),
ACL: new Parse.ACL(Parse.User.current())
});
var user = Parse.User.current();
var relation = user.relation("friend");
relation.add(email);
user.save();
this.emailInput.val('');
}
ありがとう!ゴン