You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by sv...@apache.org on 2019/05/15 21:24:51 UTC
[wicket] 11/16: WICKET-6667 JS simplified structure
This is an automated email from the ASF dual-hosted git repository.
svenmeier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git
commit c57c9525076fd753d6e006b23df8efd3e9314a77
Author: Sven Meier <sv...@apache.org>
AuthorDate: Thu May 9 07:57:23 2019 +0200
WICKET-6667 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)