]> git.parisson.com Git - pdf.js.git/commitdiff
Removing non-standard __defineGetter__ function
authornotmasteryet <async.processingjs@yahoo.com>
Sat, 1 Oct 2011 21:21:13 +0000 (16:21 -0500)
committernotmasteryet <async.processingjs@yahoo.com>
Sat, 1 Oct 2011 21:21:13 +0000 (16:21 -0500)
pdf.js

diff --git a/pdf.js b/pdf.js
index 3fa22496af0cffdce7cc0377801c774fa7ac7d74..a1f722f845b3dade7551ad4b0aa622085479a9b6 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -55,16 +55,10 @@ function assertWellFormed(cond, msg) {
 }
 
 function shadow(obj, prop, value) {
-  try {
-    Object.defineProperty(obj, prop, { value: value,
-                                       enumerable: true,
-                                       configurable: true,
-                                       writable: false });
-  } catch (e) {
-    obj.__defineGetter__(prop, function shadowDefineGetter() {
-      return value;
-    });
-  }
+  Object.defineProperty(obj, prop, { value: value,
+                                     enumerable: true,
+                                     configurable: true,
+                                     writable: false });
   return value;
 }