Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removing use of lambda syntax in script blocks emitted by AureliaEnha…
…nceTagHelper - fixes issue in IE11.
  • Loading branch information
deap82 committed Jun 29, 2017
1 parent 2b34f27 commit 70bedc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FooBar.Web/TagHelpers/AureliaEnhanceTagHelper.cs
Expand Up @@ -52,8 +52,8 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
}
output.PostElement.AppendHtml($@"
<script>
SystemJS.import('app/core/aurelia-enhancer').then(enhancer => {{
SystemJS.import('{Module}').then(module => {{
SystemJS.import('app/core/aurelia-enhancer').then(function(enhancer) {{
SystemJS.import('{Module}').then(function(module) {{
var data = {jsonData};
var clientModel = module.create(data);
enhancer.enhance(clientModel, document.getElementById('{elementId}'));
Expand All @@ -65,7 +65,7 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
{
output.PostElement.AppendHtml($@"
<script>
SystemJS.import('app/core/aurelia-enhancer').then(enhancer => {{
SystemJS.import('app/core/aurelia-enhancer').then(function(enhancer) {{
enhancer.enhance({{}}, document.getElementById('{elementId}'));
}});
</script>");
Expand Down

0 comments on commit 70bedc1

Please sign in to comment.