Return-Path: X-Original-To: apmail-deltaspike-commits-archive@www.apache.org Delivered-To: apmail-deltaspike-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D47F118BDF for ; Wed, 15 Jul 2015 21:16:53 +0000 (UTC) Received: (qmail 26673 invoked by uid 500); 15 Jul 2015 21:16:53 -0000 Delivered-To: apmail-deltaspike-commits-archive@deltaspike.apache.org Received: (qmail 26636 invoked by uid 500); 15 Jul 2015 21:16:53 -0000 Mailing-List: contact commits-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltaspike.apache.org Delivered-To: mailing list commits@deltaspike.apache.org Received: (qmail 26627 invoked by uid 99); 15 Jul 2015 21:16:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Jul 2015 21:16:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7C88EE1786; Wed, 15 Jul 2015 21:16:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tandraschko@apache.org To: commits@deltaspike.apache.org Message-Id: <807490499b3b4d208d668fe129038c8b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: deltaspike git commit: DELTASPIKE-953 fixed JS error Date: Wed, 15 Jul 2015 21:16:53 +0000 (UTC) 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 Authored: Wed Jul 15 23:16:46 2015 +0200 Committer: Thomas Andraschko 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) {