]> git.parisson.com Git - pdf.js.git/commitdiff
Bug, seen by @yurydelendik, thanx!
authorTim de Koning <github@kingsquare.nl>
Wed, 27 Jun 2012 15:01:05 +0000 (17:01 +0200)
committerTim de Koning <github@kingsquare.nl>
Wed, 27 Jun 2012 15:03:34 +0000 (17:03 +0200)
web/compatibility.js

index ed4fae3389024e6581c9ad9fe8c1578d365cb9eb..540dff0b10f3c56de847c9dd110729f9b4c29fb6 100644 (file)
 
 // Object.defineProperty() ?
 (function checkObjectDefinePropertyCompatibility() {
-  // safari 5 cannot use this on DOM objects and thus is unusable,
-  // see http://kangax.github.com/es5-compat-table/
+  // safari 5 and 6 cannot use this on DOM objects and thus it's unusable,
   if ((typeof Object.defineProperty !== 'undefined') &&
-    /Safari\/5/.test(navigator.userAgent)) return;
+    !/Safari/.test(navigator.userAgent)) return;
 
   Object.defineProperty = function objectDefineProperty(obj, name, def) {
     delete obj[name];