Revert "[GENERIC viewer] Add fallback logic for the old PDFPageView.update method signature"
				
					
				
			This reverts commit 846620438417c395f14f3cb60a02806c1b3bebc8, since it's now been included in three official releases.
This commit is contained in:
		
							parent
							
								
									2cc98dcdaa
								
							
						
					
					
						commit
						f2c9a6bc24
					
				| @ -320,23 +320,6 @@ class PDFPageView { | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   update({ scale = 0, rotation = null, optionalContentConfigPromise = null }) { |   update({ scale = 0, rotation = null, optionalContentConfigPromise = null }) { | ||||||
|     if ( |  | ||||||
|       typeof PDFJSDev !== "undefined" && |  | ||||||
|       PDFJSDev.test("GENERIC") && |  | ||||||
|       typeof arguments[0] !== "object" |  | ||||||
|     ) { |  | ||||||
|       console.error( |  | ||||||
|         "PDFPageView.update called with separate parameters, please use an object instead." |  | ||||||
|       ); |  | ||||||
| 
 |  | ||||||
|       this.update({ |  | ||||||
|         scale: arguments[0], |  | ||||||
|         rotation: arguments[1], |  | ||||||
|         optionalContentConfigPromise: arguments[2], |  | ||||||
|       }); |  | ||||||
|       return; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     this.scale = scale || this.scale; |     this.scale = scale || this.scale; | ||||||
|     if (typeof rotation === "number") { |     if (typeof rotation === "number") { | ||||||
|       this.rotation = rotation; // The rotation may be zero.
 |       this.rotation = rotation; // The rotation may be zero.
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user