You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by jo...@apache.org on 2022/09/29 11:40:28 UTC

[sling-org-apache-sling-scripting-sightly-js-provider] branch SLING-11601-use-LazyBindings created (now e448aa2)

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

joerghoh pushed a change to branch SLING-11601-use-LazyBindings
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-js-provider.git


      at e448aa2  SLING-11601 use LazyBindings

This branch includes the following new commits:

     new e448aa2  SLING-11601 use LazyBindings

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[sling-org-apache-sling-scripting-sightly-js-provider] 01/01: SLING-11601 use LazyBindings

Posted by jo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

joerghoh pushed a commit to branch SLING-11601-use-LazyBindings
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-scripting-sightly-js-provider.git

commit e448aa292528bb40191ccf55e2844d79db25e836
Author: Joerg Hoh <jo...@apache.org>
AuthorDate: Thu Sep 29 13:40:15 2022 +0200

    SLING-11601 use LazyBindings
---
 .../scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java b/src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java
index b11b3c8..ba1314d 100644
--- a/src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java
+++ b/src/main/java/org/apache/sling/scripting/sightly/js/impl/jsapi/SlyBindingsValuesProvider.java
@@ -30,7 +30,6 @@ import java.util.Map;
 
 import javax.script.Bindings;
 import javax.script.ScriptEngine;
-import javax.script.SimpleBindings;
 import javax.servlet.http.HttpServletRequest;
 
 import org.apache.commons.io.IOUtils;
@@ -206,7 +205,7 @@ public class SlyBindingsValuesProvider {
                                     resource.getPath()
                             ),
                             createBindings(bindings, resource.getPath()),
-                            new SimpleBindings()
+                            new LazyBindings()
                     );
             Object obj = container.getResult();
             if (!(obj instanceof Function)) {