equal
deleted
inserted
replaced
232 // getCommentFromIComment ... |
232 // getCommentFromIComment ... |
233 getComment : function(dbId) { |
233 getComment : function(dbId) { |
234 return this.commentsByDbId[dbId] ; |
234 return this.commentsByDbId[dbId] ; |
235 }, |
235 }, |
236 |
236 |
237 getCommentByKey : function(key) { |
237 getCommentByIdKey : function(id_key) { |
238 for (var id in this.commentsByDbId) { |
238 for (var id in this.commentsByDbId) { |
239 var comment = this.commentsByDbId[id] ; |
239 var comment = this.commentsByDbId[id] ; |
240 if (comment.key == key) { |
240 if (comment.id_key == id_key) { |
241 return comment ; |
241 return comment ; |
242 } |
242 } |
243 } |
243 } |
244 return null ; |
244 return null ; |
245 }, |
245 }, |