Remove the |el| property in PDFPageView and PDFThumbnailView
This commit is contained in:
		
							parent
							
								
									bc7a110743
								
							
						
					
					
						commit
						eed67ea8bb
					
				@ -80,7 +80,6 @@ var PDFPageView = (function PDFPageViewClosure() {
 | 
				
			|||||||
    div.className = 'page';
 | 
					    div.className = 'page';
 | 
				
			||||||
    div.style.width = Math.floor(this.viewport.width) + 'px';
 | 
					    div.style.width = Math.floor(this.viewport.width) + 'px';
 | 
				
			||||||
    div.style.height = Math.floor(this.viewport.height) + 'px';
 | 
					    div.style.height = Math.floor(this.viewport.height) + 'px';
 | 
				
			||||||
    this.el = div; // TODO replace 'el' property usage
 | 
					 | 
				
			||||||
    this.div = div;
 | 
					    this.div = div;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    container.appendChild(div);
 | 
					    container.appendChild(div);
 | 
				
			||||||
 | 
				
			|||||||
@ -99,7 +99,6 @@ var PDFThumbnailView = (function PDFThumbnailViewClosure() {
 | 
				
			|||||||
    var div = document.createElement('div');
 | 
					    var div = document.createElement('div');
 | 
				
			||||||
    div.id = 'thumbnailContainer' + id;
 | 
					    div.id = 'thumbnailContainer' + id;
 | 
				
			||||||
    div.className = 'thumbnail';
 | 
					    div.className = 'thumbnail';
 | 
				
			||||||
    this.el = div; // TODO: replace 'el' property usage.
 | 
					 | 
				
			||||||
    this.div = div;
 | 
					    this.div = div;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (id === 1) {
 | 
					    if (id === 1) {
 | 
				
			||||||
 | 
				
			|||||||
@ -194,16 +194,16 @@ function getVisibleElements(scrollEl, views, sortByVisibility) {
 | 
				
			|||||||
  var currentWidth, viewWidth;
 | 
					  var currentWidth, viewWidth;
 | 
				
			||||||
  for (var i = 0, ii = views.length; i < ii; ++i) {
 | 
					  for (var i = 0, ii = views.length; i < ii; ++i) {
 | 
				
			||||||
    view = views[i];
 | 
					    view = views[i];
 | 
				
			||||||
    currentHeight = view.el.offsetTop + view.el.clientTop;
 | 
					    currentHeight = view.div.offsetTop + view.div.clientTop;
 | 
				
			||||||
    viewHeight = view.el.clientHeight;
 | 
					    viewHeight = view.div.clientHeight;
 | 
				
			||||||
    if ((currentHeight + viewHeight) < top) {
 | 
					    if ((currentHeight + viewHeight) < top) {
 | 
				
			||||||
      continue;
 | 
					      continue;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    if (currentHeight > bottom) {
 | 
					    if (currentHeight > bottom) {
 | 
				
			||||||
      break;
 | 
					      break;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    currentWidth = view.el.offsetLeft + view.el.clientLeft;
 | 
					    currentWidth = view.div.offsetLeft + view.div.clientLeft;
 | 
				
			||||||
    viewWidth = view.el.clientWidth;
 | 
					    viewWidth = view.div.clientWidth;
 | 
				
			||||||
    if ((currentWidth + viewWidth) < left || currentWidth > right) {
 | 
					    if ((currentWidth + viewWidth) < left || currentWidth > right) {
 | 
				
			||||||
      continue;
 | 
					      continue;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user