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
parent
0718d80257
commit
e0a78c2ed6
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue