Hi all,

If I include a script that has similarly named variables as my parent script, I *think* the common variables in the parent script are being wiped out.

For example:

<%
  var foo = currentNode.getNode('foo');

  sling.include('/my/content/foobar.html');

  var bar = foo.getNode('bar');
%>

If the script mapped to /my/content/foobar.html contains a variable 'foo', then the last statement will give an error, because foo is now undefined in the parent.

I haven't had a chance to create a definite test case to verify it yet, but multiple observations of my variables being mysteriously wiped out suggest this is what is happening.

Is this to be expected?

Best,
Branden

Reply via email to