Skip to content

Commit

Permalink
Merge pull request #4 from hofff/feature/ajax-optout
Browse files Browse the repository at this point in the history
Fix javascript error in IE 11
  • Loading branch information
davidmaack authored Aug 31, 2018
2 parents ac85790 + 1f21d53 commit 5169c65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions src/Resources/public/js/optout.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,16 @@ matomoOptOut.prototype.api = function (method) {
};

matomoOptOut.prototype.merge = function (object, src) {
var extended = Object.assign({}, object);
var extended = {};
var key;

for (var key in src) {
for (key in object) {
if (object.hasOwnProperty(key)) {
extended[key] = object[key];
}
}

for (key in src) {
if (src.hasOwnProperty(key)) {
extended[key] = src[key];
}
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/public/js/optout.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5169c65

Please sign in to comment.