Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Removing use of lambda syntax in script blocks emitted by AureliaEnha…
…nceTagHelper - fixes issue in IE11.
- Loading branch information
Showing
with
3 additions
and
3 deletions.
-
+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>"); |
|
|