Merge pull request #588 from notmasteryet/tree-27
Removing non-standard __defineGetter__ function
This commit is contained in:
		
						commit
						c77ce01e35
					
				
							
								
								
									
										6
									
								
								pdf.js
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								pdf.js
									
									
									
									
									
								
							@ -55,16 +55,10 @@ function assertWellFormed(cond, msg) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function shadow(obj, prop, value) {
 | 
					function shadow(obj, prop, value) {
 | 
				
			||||||
  try {
 | 
					 | 
				
			||||||
  Object.defineProperty(obj, prop, { value: value,
 | 
					  Object.defineProperty(obj, prop, { value: value,
 | 
				
			||||||
                                     enumerable: true,
 | 
					                                     enumerable: true,
 | 
				
			||||||
                                     configurable: true,
 | 
					                                     configurable: true,
 | 
				
			||||||
                                     writable: false });
 | 
					                                     writable: false });
 | 
				
			||||||
  } catch (e) {
 | 
					 | 
				
			||||||
    obj.__defineGetter__(prop, function shadowDefineGetter() {
 | 
					 | 
				
			||||||
      return value;
 | 
					 | 
				
			||||||
    });
 | 
					 | 
				
			||||||
  }
 | 
					 | 
				
			||||||
  return value;
 | 
					  return value;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user