You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by so...@apache.org on 2017/11/24 17:46:35 UTC
wicket git commit: [WICKET-6497] code to ensure 'Wicket' is defined
is added
Repository: wicket
Updated Branches:
refs/heads/master d8f7bebf9 -> 05259c230
[WICKET-6497] code to ensure 'Wicket' is defined is added
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/05259c23
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/05259c23
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/05259c23
Branch: refs/heads/master
Commit: 05259c230689b015d9fe0526cb234aecd97a5ce7
Parents: d8f7beb
Author: Maxim Solodovnik <so...@gmail.com>
Authored: Sat Nov 25 00:46:27 2017 +0700
Committer: Maxim Solodovnik <so...@gmail.com>
Committed: Sat Nov 25 00:46:27 2017 +0700
----------------------------------------------------------------------
.../java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/05259c23/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
----------------------------------------------------------------------
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 1a1379a..d4149fb 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
@@ -28,7 +28,11 @@
'use strict';
- if (typeof(Wicket) === 'object' && typeof(Wicket.Head) === 'object') {
+ if (typeof(Wicket) === 'undefined') {
+ window.Wicket = {};
+ }
+
+ if (typeof(Wicket.Head) === 'object') {
return;
}