Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/duereg/spark into duereg…
Browse files Browse the repository at this point in the history
…-patch-1
  • Loading branch information
RobertTheGrey committed Feb 7, 2015
2 parents 2c26e30 + 9d4c40e commit 3037a3b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Spark/Compiler/Javascript/JavascriptViewCompiler.cs
Expand Up @@ -46,7 +46,9 @@ public override void GenerateSourceCode(IEnumerable<IList<Chunk>> viewTemplates,
// convert some syntax from csharp to javascript
foreach (var template in viewTemplates)
anonymousTypeVisitor.Accept(template);

foreach (var template in allResources)
anonymousTypeVisitor.Accept(template);

var cumulativeName = "window.Spark";
foreach (var part in nameParts.Where(p => p != "~"))
{
Expand Down Expand Up @@ -121,4 +123,4 @@ static string SafeName(string name)
return safeName.Replace(".", "");
}
}
}
}

0 comments on commit 3037a3b

Please sign in to comment.