Skip to content

Commit d70e6ab

Browse files
author
Tim de Koning
committed
Bug, seen by @yurydelendik, thanx!
1 parent 17c1018 commit d70e6ab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web/compatibility.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,9 @@
7979

8080
// Object.defineProperty() ?
8181
(function checkObjectDefinePropertyCompatibility() {
82-
// safari 5 cannot use this on DOM objects and thus is unusable,
83-
// see http://kangax.github.com/es5-compat-table/
82+
// safari 5 and 6 cannot use this on DOM objects and thus it's unusable,
8483
if ((typeof Object.defineProperty !== 'undefined') &&
85-
/Safari\/5/.test(navigator.userAgent)) return;
84+
!/Safari/.test(navigator.userAgent)) return;
8685

8786
Object.defineProperty = function objectDefineProperty(obj, name, def) {
8887
delete obj[name];

0 commit comments

Comments
 (0)