Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Safari fix: Don't copy prototype from native URL
Browse files Browse the repository at this point in the history
  • Loading branch information
inexorabletash committed Feb 10, 2016
1 parent ce1cc62 commit 4a8e3bb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -5292,7 +5292,7 @@ function __cons(t, a) {

if (origURL) {
for (var i in origURL) {
if (origURL.hasOwnProperty(i))
if (origURL.hasOwnProperty(i) && typeof origURL[i] === 'function')
global.URL[i] = origURL[i];
}
}
Expand Down Expand Up @@ -6303,7 +6303,7 @@ function __cons(t, a) {

if (origURL) {
for (var i in origURL) {
if (origURL.hasOwnProperty(i))
if (origURL.hasOwnProperty(i) && typeof origURL[i] === 'function')
global.URL[i] = origURL[i];
}
}
Expand Down
4 changes: 2 additions & 2 deletions polyfill.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion url.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@

if (origURL) {
for (var i in origURL) {
if (origURL.hasOwnProperty(i))
if (origURL.hasOwnProperty(i) && typeof origURL[i] === 'function')
global.URL[i] = origURL[i];
}
}
Expand Down
4 changes: 2 additions & 2 deletions web.js
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@

if (origURL) {
for (var i in origURL) {
if (origURL.hasOwnProperty(i))
if (origURL.hasOwnProperty(i) && typeof origURL[i] === 'function')
global.URL[i] = origURL[i];
}
}
Expand Down Expand Up @@ -2040,7 +2040,7 @@

if (origURL) {
for (var i in origURL) {
if (origURL.hasOwnProperty(i))
if (origURL.hasOwnProperty(i) && typeof origURL[i] === 'function')
global.URL[i] = origURL[i];
}
}
Expand Down
4 changes: 2 additions & 2 deletions web.min.js

Large diffs are not rendered by default.

0 comments on commit 4a8e3bb

Please sign in to comment.