meteor の「todos」の例で。理解できないコードが 2/3 行あります。todos.js ファイル内:
Template.todo_item.tag_objs = function () {
var todo_id = this._id;
return _.map(this.tags || [], function (tag) {
return {todo_id: todo_id, tag: tag};
});
};
手伝って頂けますか?
meteor の「todos」の例で。理解できないコードが 2/3 行あります。todos.js ファイル内:
Template.todo_item.tag_objs = function () {
var todo_id = this._id;
return _.map(this.tags || [], function (tag) {
return {todo_id: todo_id, tag: tag};
});
};
手伝って頂けますか?