deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tandrasc...@apache.org
Subject deltaspike git commit: DELTASPIKE-953 fixed JS error
Date Wed, 15 Jul 2015 21:16:53 GMT
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 <tandraschko@apache.org>
Authored: Wed Jul 15 23:16:46 2015 +0200
Committer: Thomas Andraschko <tandraschko@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) {


Mime
View raw message