src/current/compiler/js-calc.xsl (compile-calc)[c:let]: Remove global assignment

The previous code was unintentionally assigning to an undefined global
variable.
master
Mike Gerwitz 2020-01-20 14:41:26 -05:00
parent 0718d80257
commit e0a78c2ed6
1 changed files with 3 additions and 6 deletions

View File

@ -1089,12 +1089,9 @@
</if>
</variable>
<text>function </text>
<value-of select="$fname" />
<text>( </text>
<if test="@name">
<value-of select="$fname" />
<text> = </text>
</if>
<text>function( </text>
<!-- generate arguments -->
<for-each select="$values">
<if test="position() > 1">
@ -1109,7 +1106,7 @@
<text>return </text>
<apply-templates select="./c:*[2]" mode="compile" />
<text>;</text>
<text>} )</text>
<text>}</text>
<!-- assign the arguments according to the calculations -->
<text>( </text>