Avoid getting |childNodes| twice in PDFPageView_reset, by using the variable instead
This commit is contained in:
		
							parent
							
								
									dd7fd0b665
								
							
						
					
					
						commit
						8471bb3206
					
				@ -120,7 +120,7 @@ var PDFPageView = (function PDFPageViewClosure() {
 | 
				
			|||||||
      var currentZoomLayer = this.zoomLayer || null;
 | 
					      var currentZoomLayer = this.zoomLayer || null;
 | 
				
			||||||
      var currentAnnotationNode = (keepAnnotations && this.annotationLayer &&
 | 
					      var currentAnnotationNode = (keepAnnotations && this.annotationLayer &&
 | 
				
			||||||
                                   this.annotationLayer.div) || null;
 | 
					                                   this.annotationLayer.div) || null;
 | 
				
			||||||
      for (var i = div.childNodes.length - 1; i >= 0; i--) {
 | 
					      for (var i = childNodes.length - 1; i >= 0; i--) {
 | 
				
			||||||
        var node = childNodes[i];
 | 
					        var node = childNodes[i];
 | 
				
			||||||
        if (currentZoomLayer === node || currentAnnotationNode === node) {
 | 
					        if (currentZoomLayer === node || currentAnnotationNode === node) {
 | 
				
			||||||
          continue;
 | 
					          continue;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user