This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 209213fe59d1cde50adab169c4a1467be4278b4c
Author: Daniel Gruno <[email protected]>
AuthorDate: Sat Nov 13 17:43:06 2021 +0100

    rework, avoid key insertion
---
 webui/js/source/base-js-extensions.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/webui/js/source/base-js-extensions.js 
b/webui/js/source/base-js-extensions.js
index 6669d37..34efa5c 100644
--- a/webui/js/source/base-js-extensions.js
+++ b/webui/js/source/base-js-extensions.js
@@ -157,10 +157,10 @@ Array.prototype.has = function(val) {
     return false;
 };
 
-Object.prototype.isEmpty = function() {
+function isEmpty(obj) {
     return (
-        this
-        && Object.keys(this).length === 0
-        && Object.getPrototypeOf(this) === Object.prototype
+        obj
+        && Object.keys(obj).length === 0
+        && Object.getPrototypeOf(obj) === Object.prototype
     )
 }

Reply via email to