Move delayed_showing_timeout assignment where needed.
This commit is contained in:
		
							parent
							
								
									0fd18221b1
								
							
						
					
					
						commit
						fc582df257
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -18,7 +18,6 @@ function Spinner(element) | ||||||
|     this.show = function(delay) |     this.show = function(delay) | ||||||
|     { |     { | ||||||
|         clearTimeout(this.delayed_showing_timeout); |         clearTimeout(this.delayed_showing_timeout); | ||||||
|         this.delayed_showing_timeout = null; |  | ||||||
| 
 | 
 | ||||||
|         if (delay) |         if (delay) | ||||||
|         { |         { | ||||||
|  | @ -26,6 +25,7 @@ function Spinner(element) | ||||||
|         } |         } | ||||||
|         else |         else | ||||||
|         { |         { | ||||||
|  |             this.delayed_showing_timeout = null; | ||||||
|             this.element.classList.remove("hidden"); |             this.element.classList.remove("hidden"); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue