Add comment to time_difference
authorVlad Chernushevich <mailbox@happytodesign.com>
Thu, 20 Jun 2013 22:41:52 +0000 (00:41 +0200)
committerVlad Chernushevich <mailbox@happytodesign.com>
Thu, 20 Jun 2013 22:41:52 +0000 (00:41 +0200)
client/assets/src/views/panel.js

index af8d1712bb194c68ab7ace8f75aa551b232a2dda..553f2d4929d695170c2a15ed9e5d5904204f6c23 100644 (file)
@@ -118,6 +118,7 @@ _kiwi.view.Panel = Backbone.View.extend({
         template_vars = _.clone(msg);
 
         if (prev_msg) {
+            // Time difference between this message and the last (in minutes)
             time_difference = (template_vars.date.getTime() - prev_msg.date.getTime())/1000/60;
             if (prev_msg.nick === template_vars.nick && time_difference < 1) {
                 template_vars.nick = '';