You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by ta...@apache.org on 2015/07/15 23:16:53 UTC
deltaspike git commit: DELTASPIKE-953 fixed JS error
Repository: deltaspike
Updated Branches:
refs/heads/master 7781c0b18 -> 7823bf88a
DELTASPIKE-953 fixed JS error
Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/7823bf88
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/7823bf88
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/7823bf88
Branch: refs/heads/master
Commit: 7823bf88a2f5e70bd10bb7d5e7e036d869b642e8
Parents: 7781c0b
Author: Thomas Andraschko <ta...@apache.org>
Authored: Wed Jul 15 23:16:46 2015 +0200
Committer: Thomas Andraschko <ta...@apache.org>
Committed: Wed Jul 15 23:16:46 2015 +0200
----------------------------------------------------------------------
.../resources/META-INF/resources/deltaspike/windowhandler.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltaspike/blob/7823bf88/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js b/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
index 5722bff..bc7b9d6 100644
--- a/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
+++ b/deltaspike/modules/jsf/impl/src/main/resources/META-INF/resources/deltaspike/windowhandler.js
@@ -25,7 +25,11 @@ window.dswh = window.dswh || {
init : function(windowId, clientWindowRenderMode, cfg) {
this.windowId = windowId;
this.clientWindowRenderMode = clientWindowRenderMode;
- this.cfg = cfg;
+ if (cfg) {
+ this.cfg = cfg;
+ } else {
+ this.cfg = {};
+ }
var targetStrategy = this.strategy[clientWindowRenderMode];
if (targetStrategy) {