Skip to content

Commit b316854

Browse files
committed
Fix: Work around for strange bug in Fusion
1 parent f84dabc commit b316854

File tree

10 files changed

+22
-23
lines changed

10 files changed

+22
-23
lines changed

Resources/Private/Fusion/External/Case.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ prototype(Carbon.IncludeAssets:Case) < prototype(Neos.Fusion:Component) {
99
alwaysInclude = ${PropTypes.boolean}
1010
}
1111

12-
mixin = null
12+
mixin = ${null}
1313
document = ${this.mixin}
1414
content = ${this.mixin}
1515
appendFilter = ''

Resources/Private/Fusion/External/Collection.fusion

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ prototype(Carbon.IncludeAssets:Collection) < prototype(Neos.Fusion:Component) {
3131
}
3232

3333
collection = ${[]}
34-
assetPackage = null
34+
assetPackage = ${null}
3535
cacheBuster = ${Configuration.setting('Carbon.IncludeAssets.Default.CacheBuster')}
3636
disableCacheBusterForPreloadAsset = ${Configuration.setting('Carbon.IncludeAssets.Default.DisableCacheBusterForPreloadAsset')}
3737
paths = ${Configuration.setting('Carbon.IncludeAssets.Default.Path')}
38-
wrapper = null
38+
wrapper = ${null}
3939

4040
@if.hasAssetPackage = ${this.assetPackage && Type.isArray(this.collection) && Array.length(this.collection)}
4141

Resources/Private/Fusion/External/File.fusion

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ prototype(Carbon.IncludeAssets:File) < prototype(Neos.Fusion:Component) {
1212
wrapper = ${PropTypes.string}
1313
}
1414

15-
file = null
15+
file = ${null}
1616
assetPackage = ${node.context.currentSite.siteResourcesPackageKey}
1717
cacheBuster = ${Configuration.setting('Carbon.IncludeAssets.Default.CacheBuster')}
1818
disableCacheBusterForPreloadAsset = ${Configuration.setting('Carbon.IncludeAssets.Default.DisableCacheBusterForPreloadAsset')}
19-
assetPath = null
20-
wrapper = null
19+
assetPath = ${null}
20+
wrapper = ${null}
2121

2222
// This is a internal variable, please use `assetPath` for an single file
2323
paths = ${Configuration.setting('Carbon.IncludeAssets.Default.Path')}

Resources/Private/Fusion/External/ResourceHints.fusion

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ prototype(Carbon.IncludeAssets:ResourceHints) < prototype(Neos.Fusion:Component)
3030
modulePreload = ${Configuration.setting('Carbon.IncludeAssets.ResourceHints.ModulePreload')}
3131

3232
// Pass documentNodes who should be preloaded (Array, FlowQuery or a single node)
33-
preloadNodes = null
33+
preloadNodes = ${null}
3434
// Pass documentNodes who should be prerendererd (Array, FlowQuery or a single node)
35-
prerenderNodes = null
35+
prerenderNodes = ${null}
3636

3737
renderer = afx`
3838
<Carbon.IncludeAssets:ResourceHints.Items @key='dnsPrefetch' items={props.dnsPrefetch} rel='dns-prefetch' />
@@ -54,8 +54,8 @@ prototype(Carbon.IncludeAssets:ResourceHints.Items) < prototype(Neos.Fusion:Comp
5454
type = ${PropTypes.oneOf(['modulepreload', 'resourcehint'])}
5555
}
5656

57-
items = null
58-
rel = null
57+
items = ${null}
58+
rel = ${null}
5959
type = ${this.rel == 'modulepreload' ? 'modulepreload' : 'resourcehint'}
6060

6161

@@ -80,9 +80,9 @@ prototype(Carbon.IncludeAssets:ResourceHints.Nodes) < prototype(Neos.Fusion:Comp
8080
type = ${PropTypes.string}
8181
}
8282

83-
items = null
84-
rel = null
85-
as = null
83+
items = ${null}
84+
rel = ${null}
85+
as = ${null}
8686

8787
// Internal
8888
items.@process {
@@ -106,4 +106,3 @@ prototype(Carbon.IncludeAssets:ResourceHints.Nodes) < prototype(Neos.Fusion:Comp
106106
`
107107
}
108108
}
109-

Resources/Private/Fusion/Internal/Assets.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
prototype(Carbon.IncludeAssets:Internal.Assets) < prototype(Neos.Fusion:Component) {
66
// Body || Head || BodyStart || HeadStart
7-
location = null
7+
location = ${null}
88

99
loadJSforCSSAsynchron = ${Configuration.setting('Carbon.IncludeAssets.LoadJSforCSSAsynchron') && this.location == 'Head'}
1010
packages = ${Configuration.setting('Carbon.IncludeAssets.Packages')}

Resources/Private/Fusion/Internal/InlineFile.fusion

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
prototype(Carbon.IncludeAssets:Internal.InlineFile) < prototype(Carbon.IncludeAssets:Internal.TypeCase) {
22
@if.set = ${this.path && this.type && this.content}
33

4-
path = null
5-
type = null
4+
path = ${null}
5+
type = ${null}
66
attributes = ''
77
content = ${String.trim(Carbon.FileContent.path(this.path))}
88
css = ${'<style' + this.attributes +'>' + this.content + '</style>'}

Resources/Private/Fusion/Internal/Package.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
prototype(Carbon.IncludeAssets:Internal.Package) < prototype(Neos.Fusion:Component) {
66
// Body || Head || BodyStart || HeadStart
7-
location = null
7+
location = ${null}
88
// The config for the package
99
config = Neos.Fusion:DataStructure
1010

Resources/Private/Fusion/Internal/Tag.fusion

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
prototype(Carbon.IncludeAssets:Internal.Tag) < prototype(Neos.Fusion:Component) {
2-
path = null
3-
fileObject = null
2+
path = ${null}
3+
fileObject = ${null}
44
cacheBuster = false
55
async = ${this.fileObject.async}
66
external = ${this.fileObject.external}
@@ -30,7 +30,7 @@ prototype(Carbon.IncludeAssets:Internal.Tag) < prototype(Neos.Fusion:Component)
3030

3131
prototype(Carbon.IncludeAssets:Internal.Tag.ResourceHint) < prototype(Carbon.IncludeAssets:Internal.Tag) {
3232
async = false
33-
rel = null
33+
rel = ${null}
3434
disableCacheBusterForPreloadAsset = true
3535
cacheBuster.@process.disableForPreloadasset = ${this.disableCacheBusterForPreloadAsset && this.fileObject && this.fileObject.type == 'PRELOADASSET' ? false : value}
3636
@if.hasRel = ${this.rel}

Resources/Private/Fusion/Internal/TypeCase.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
prototype(Carbon.IncludeAssets:Internal.TypeCase) < prototype(Neos.Fusion:Component) {
10-
type = null
10+
type = ${null}
1111
html = ''
1212
js = ''
1313
css = ''

Resources/Private/Fusion/Internal/Wrapper.fusion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
prototype(Carbon.IncludeAssets:Internal.Wrapper) < prototype(Neos.Fusion:Value) {
22
content = ${value}
3-
wrapper = null
3+
wrapper = ${null}
44
wrapper.@if.hasContent = ${this.content}
55
wrapper.@process.split = ${value && Type.isString(value) ? String.split(value, '{content}') : null}
66
nl = ${String.chr(10)}

0 commit comments

Comments
 (0)