diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-05-06 01:19:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 01:19:14 +0300 |
commit | 351307dd5d9715a27290ffe1809b030651a388c9 (patch) | |
tree | 4b2ae6d4ad56d39802cbc7dea35f9a43ef621440 /js/piwik.js | |
parent | 0e41d7e28ae063ca6117cb00d73f1c6a2b1a8436 (diff) |
Improve isObjectEmpty function in piwik.js (#19182)
* Improve isObjectEmpty function in piwik.js
* rebuilt piwik.js
Diffstat (limited to 'js/piwik.js')
-rw-r--r-- | js/piwik.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/piwik.js b/js/piwik.js index b10f2862ad..09019f3c6e 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -260,14 +260,13 @@ if (typeof window.Matomo !== 'object') { } var i; - var isEmpty = true; for (i in property) { if (Object.prototype.hasOwnProperty.call(property, i)) { - isEmpty = false; + return false; } } - return isEmpty; + return true; } /** |