Skip to content

Commit 70bedc1

Browse files
committed
Removing use of lambda syntax in script blocks emitted by AureliaEnhanceTagHelper - fixes issue in IE11.
1 parent 2b34f27 commit 70bedc1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FooBar.Web/TagHelpers/AureliaEnhanceTagHelper.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
5252
}
5353
output.PostElement.AppendHtml($@"
5454
<script>
55-
SystemJS.import('app/core/aurelia-enhancer').then(enhancer => {{
56-
SystemJS.import('{Module}').then(module => {{
55+
SystemJS.import('app/core/aurelia-enhancer').then(function(enhancer) {{
56+
SystemJS.import('{Module}').then(function(module) {{
5757
var data = {jsonData};
5858
var clientModel = module.create(data);
5959
enhancer.enhance(clientModel, document.getElementById('{elementId}'));
@@ -65,7 +65,7 @@ public override void Process(TagHelperContext context, TagHelperOutput output)
6565
{
6666
output.PostElement.AppendHtml($@"
6767
<script>
68-
SystemJS.import('app/core/aurelia-enhancer').then(enhancer => {{
68+
SystemJS.import('app/core/aurelia-enhancer').then(function(enhancer) {{
6969
enhancer.enhance({{}}, document.getElementById('{elementId}'));
7070
}});
7171
</script>");

0 commit comments

Comments
 (0)