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

svenmeier pushed a commit to branch wicket-js-cleanup
in repository https://gitbox.apache.org/repos/asf/wicket.git

commit 234666aac381c1ce21e4b700204ed022c2b93992
Author: Sven Meier <svenme...@apache.org>
AuthorDate: Thu May 9 07:57:23 2019 +0200

    JS simplified structure
    
    leftover from merger with wicket-event
---
 .../apache/wicket/ajax/res/js/wicket-ajax-jquery.js    | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

diff --git 
a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js 
b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index fddc251..4d03f21 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ 
b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -36,11 +36,7 @@
                return;
        }
 
-       var getAjaxBaseUrl,
-               isUndef,
-               nodeListToArray;
-
-       isUndef = function (target) {
+       var isUndef = function (target) {
                return (typeof(target) === 'undefined' || target === null);
        };
 
@@ -50,7 +46,7 @@
         * return '.' (current folder) as base URL.
         * Used for request header and parameter
         */
-       getAjaxBaseUrl = function () {
+       var getAjaxBaseUrl = function () {
                var baseUrl = Wicket.Ajax.baseUrl || '.';
                return baseUrl;
        };
@@ -61,7 +57,7 @@
         * @param nodeList The NodeList to convert
         * @returns {Array} The array with document nodes
         */
-       nodeListToArray = function (nodeList) {
+       var nodeListToArray = function (nodeList) {
                var arr = [],
                        nodeId;
                if (nodeList && nodeList.length) {
@@ -2385,12 +2381,8 @@
                                        }
                                }
                        }
-               }
-       });
-
-
-       jQuery.extend(true, Wicket, {
-
+               },
+               
                /**
                 * Events related code
                 * Based on code from Mootools (http://mootools.net)

Reply via email to