Skip to content

Commit 3037a3b

Browse files
committed
Merge branch 'patch-1' of https://github.com/duereg/spark into duereg-patch-1
2 parents 2c26e30 + 9d4c40e commit 3037a3b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Spark/Compiler/Javascript/JavascriptViewCompiler.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public override void GenerateSourceCode(IEnumerable<IList<Chunk>> viewTemplates,
4646
// convert some syntax from csharp to javascript
4747
foreach (var template in viewTemplates)
4848
anonymousTypeVisitor.Accept(template);
49-
49+
foreach (var template in allResources)
50+
anonymousTypeVisitor.Accept(template);
51+
5052
var cumulativeName = "window.Spark";
5153
foreach (var part in nameParts.Where(p => p != "~"))
5254
{
@@ -121,4 +123,4 @@ static string SafeName(string name)
121123
return safeName.Replace(".", "");
122124
}
123125
}
124-
}
126+
}

0 commit comments

Comments
 (0)