You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  | (function() { | 
					
						
							|  |  |  |   'use strict'; | 
					
						
							|  |  |  |   window.Whisper = window.Whisper || {}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   var FIVE_SECONDS = 5 * 1000; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   Whisper.LastSeenIndicatorView = Whisper.View.extend({ | 
					
						
							|  |  |  |     className: 'last-seen-indicator-view', | 
					
						
							|  |  |  |     templateName: 'last-seen-indicator-view', | 
					
						
							|  |  |  |     initialize: function(options) { | 
					
						
							|  |  |  |       options = options || {}; | 
					
						
							|  |  |  |       this.count = options.count || 0; | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     increment: function(count) { | 
					
						
							|  |  |  |       this.count += count; | 
					
						
							|  |  |  |       this.render(); | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     getCount: function() { | 
					
						
							|  |  |  |       return this.count; | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     render_attributes: function() { | 
					
						
							|  |  |  |       var unreadMessages = | 
					
						
							|  |  |  |         this.count === 1 | 
					
						
							|  |  |  |           ? i18n('unreadMessage') | 
					
						
							|  |  |  |           : i18n('unreadMessages', [this.count]); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       return { | 
					
						
							|  |  |  |         unreadMessages: unreadMessages, | 
					
						
							|  |  |  |       }; | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | })(); |