simplify logic
This commit is contained in:
		
					parent
					
						
							
								180a77e671
							
						
					
				
			
			
				commit
				
					
						2c7690be45
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -50,7 +50,7 @@ var NavigationController = (function () {
 | 
				
			||||||
        this.history = this.history.slice(0, this.currentIndex + 1)
 | 
					        this.history = this.history.slice(0, this.currentIndex + 1)
 | 
				
			||||||
        currentEntry = this.history[this.currentIndex]
 | 
					        currentEntry = this.history[this.currentIndex]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ((currentEntry != null ? currentEntry : void 0) !== url) {
 | 
					        if (currentEntry !== url) {
 | 
				
			||||||
          this.currentIndex++
 | 
					          this.currentIndex++
 | 
				
			||||||
          this.history.push(url)
 | 
					          this.history.push(url)
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue