保存当前用户的关系

时间:2012-08-19 06:32:20

标签: javascript backbone.js parse-platform

在设置了关系后尝试Uncaught TypeError: Cannot set property 'success' of undefined时获得Parse.User.current().save()。它抱怨 - 任何想法我可能在这里做错了吗?

1 flagRead: function() {
2   // Mark as READ
3   var user = Parse.User.current();
4   var relation = user.relation("read");
5   relation.add(this.model);
6   user.save();
7   console.log("Marked as read");
8 },

0 个答案:

没有答案