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

adityasharma pushed a commit to branch release18.12
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git

commit 962e2495d4cbc73722916dbf6ecc51b85597a79d
Author: Aditya Sharma <adityasha...@apache.org>
AuthorDate: Mon Jun 8 19:26:43 2020 +0530

    Fixed: console error TypeError: document is undefined
    (OFBIZ-11752)
    
    As the document object was not passed to the IFFE call for the FORMALIZE 
function, it gives console error for the missing document object when accessed
---
 themes/common-theme/webapp/common/js/util/application.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/common-theme/webapp/common/js/util/application.js 
b/themes/common-theme/webapp/common/js/util/application.js
index ec6c0db..fbecfef 100644
--- a/themes/common-theme/webapp/common/js/util/application.js
+++ b/themes/common-theme/webapp/common/js/util/application.js
@@ -191,7 +191,7 @@ var FORMALIZE = (function($, window, document, undefined) {
             }
         }
     };
-})(jQuery, this);
+})(jQuery, this, document);
 
 jQuery(document).ready(function() {
     FORMALIZE.go();

Reply via email to