You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by vo...@apache.org on 2022/11/29 20:01:14 UTC

[myfaces] branch 2.3-next updated: Fix undefined variable errors

This is an automated email from the ASF dual-hosted git repository.

volosied pushed a commit to branch 2.3-next
in repository https://gitbox.apache.org/repos/asf/myfaces.git


The following commit(s) were added to refs/heads/2.3-next by this push:
     new 8baae6e31 Fix undefined variable errors
     new 97343b6fc Merge pull request #401 from volosied/bug-fixes-2.3-next
8baae6e31 is described below

commit 8baae6e31d1a09b9659f4acc258ef77853a32a31
Author: Volodymyr Siedlecki <vo...@gmail.com>
AuthorDate: Mon Nov 28 12:08:54 2022 -0500

    Fix undefined variable errors
---
 api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js   | 2 +-
 .../META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js b/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js
index c09d41ed9..04b281926 100644
--- a/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js
+++ b/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js
@@ -309,7 +309,7 @@ _MF_SINGLTN(_PFX_CORE + "Impl", _MF_OBJECT, /**  @lends myfaces._impl.core.Impl.
             if(!(delayTimeout >= 0)) {
                 // abbreviation which covers all cases of non positive values,
                 // including NaN and non-numeric strings, no type equality is deliberate here,
-                throw new Error("Invalid delay value: " + value);
+                throw new Error("Invalid delay value: " + delayTimeout);
             }
             if (this._delayTimeout) {
                 clearTimeout(this._delayTimeout);
diff --git a/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js b/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
index f6286b4f8..f363e6461 100644
--- a/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
+++ b/api/src/main/javascript/META-INF/resources/myfaces/_impl/xhrCore/_AjaxResponse.js
@@ -620,7 +620,7 @@ _MF_SINGLTN(_PFX_XHR + "_AjaxResponse", _MF_OBJECT, /** @lends myfaces._impl.xhr
         var oldTags = head.childNodes;
 
         _Dom.deleteItems(_Lang.objToArray(oldTags));
-        var childNodes = Lang.objToArray(newHead.childNodes);
+        var childNodes = _Lang.objToArray(newHead.childNodes);
 
         var placeHolder = document.createElement("meta");