Permalink
Browse files

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 70bedc1212ff80e551f109960b4ab204fb64699d
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/FooBar.Web/TagHelpers/AureliaEnhanceTagHelper.cs
@@ -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}'));
@@ -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>");

0 comments on commit 70bedc1

Please sign in to comment.