TimerView: Remove some unused bits of code
- initialize doesn't need to call update because MessageView.renderExpiring() calls it immediately - we don't need the className because that's already present on the el it attaches to, part of the MessageView's template. FREEBIE
This commit is contained in:
		
					parent
					
						
							
								fb7e7cf34c
							
						
					
				
			
			
				commit
				
					
						5351b60365
					
				
			
		
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -27,10 +27,6 @@
 | 
			
		|||
    });
 | 
			
		||||
    var TimerView = Whisper.View.extend({
 | 
			
		||||
        templateName: 'hourglass',
 | 
			
		||||
        className: 'timer',
 | 
			
		||||
        initialize: function() {
 | 
			
		||||
            this.update();
 | 
			
		||||
        },
 | 
			
		||||
        update: function() {
 | 
			
		||||
            if (this.timeout) {
 | 
			
		||||
              clearTimeout(this.timeout);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue