src/cm/media/js/client/c_db.js
changeset 144 e7e1bc64f613
parent 114 49647a504de8
child 333 f080de4cad76
equal deleted inserted replaced
143:3c21b9097908 144:e7e1bc64f613
   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 	},