New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fusion remove last use of copy path. #3588
Comments
mhsdesign
added a commit
to mhsdesign/neos-development-collection
that referenced
this issue
Mar 23, 2022
with: neos/flow-development-collection#2710 we can add any scalar types to Array.push as base, which will be auto casted to an array: `Array.push("foo", "bar")` which results in -> `["foo", "bar"]` which is rendered as `foo bar` previously we had to cast it to an array beforehand. I integrated this for the 'neos-contentcollection' once: neos#3438 - but this cleans the manual cast up. (this also fixes any real low level css class adding via `Type.isString()` etc by just casting to an array and then pushing the new value.) Also the last use of copy will be removed, by manually copying the (now little) code over. fixes: neos#3588
mhsdesign
added a commit
to mhsdesign/neos-development-collection
that referenced
this issue
Mar 23, 2022
with: neos/flow-development-collection#2710 we can add any scalar types to Array.push as base, which will be auto casted to an array: `Array.push("foo", "bar")` which results in -> `["foo", "bar"]` which is rendered as `foo bar` previously we had to cast it to an array beforehand. I integrated this for the 'neos-contentcollection' once: neos#3438 - but this cleans the manual cast up. (this also fixes any real low level css class adding via `Type.isString()` etc by just casting to an array and then pushing the new value.) Also the last use of copy will be removed, by manually copying the (now little) code over. fixes: neos#3588
horray ^^ |
neos-bot
pushed a commit
to neos/neos
that referenced
this issue
Mar 24, 2022
with: neos/flow-development-collection#2710 we can add any scalar types to Array.push as base, which will be auto casted to an array: `Array.push("foo", "bar")` which results in -> `["foo", "bar"]` which is rendered as `foo bar` previously we had to cast it to an array beforehand. I integrated this for the 'neos-contentcollection' once: neos/neos-development-collection#3438 - but this cleans the manual cast up. (this also fixes any real low level css class adding via `Type.isString()` etc by just casting to an array and then pushing the new value.) Also the last use of copy will be removed, by manually copying the (now little) code over. fixes: neos/neos-development-collection#3588
neos-bot
pushed a commit
to neos/nodetypes-navigation
that referenced
this issue
Mar 24, 2022
with: neos/flow-development-collection#2710 we can add any scalar types to Array.push as base, which will be auto casted to an array: `Array.push("foo", "bar")` which results in -> `["foo", "bar"]` which is rendered as `foo bar` previously we had to cast it to an array beforehand. I integrated this for the 'neos-contentcollection' once: neos/neos-development-collection#3438 - but this cleans the manual cast up. (this also fixes any real low level css class adding via `Type.isString()` etc by just casting to an array and then pushing the new value.) Also the last use of copy will be removed, by manually copying the (now little) code over. fixes: neos/neos-development-collection#3588
neos-bot
pushed a commit
to neos/neos
that referenced
this issue
Oct 7, 2022
with: neos/flow-development-collection#2710 we can add any scalar types to Array.push as base, which will be auto casted to an array: `Array.push("foo", "bar")` which results in -> `["foo", "bar"]` which is rendered as `foo bar` previously we had to cast it to an array beforehand. I integrated this for the 'neos-contentcollection' once: neos/neos-development-collection#3438 - but this cleans the manual cast up. (this also fixes any real low level css class adding via `Type.isString()` etc by just casting to an array and then pushing the new value.) Also the last use of copy will be removed, by manually copying the (now little) code over. fixes: neos/neos-development-collection#3588
neos-bot
pushed a commit
to neos/nodetypes-navigation
that referenced
this issue
Oct 7, 2022
with: neos/flow-development-collection#2710 we can add any scalar types to Array.push as base, which will be auto casted to an array: `Array.push("foo", "bar")` which results in -> `["foo", "bar"]` which is rendered as `foo bar` previously we had to cast it to an array beforehand. I integrated this for the 'neos-contentcollection' once: neos/neos-development-collection#3438 - but this cleans the manual cast up. (this also fixes any real low level css class adding via `Type.isString()` etc by just casting to an array and then pushing the new value.) Also the last use of copy will be removed, by manually copying the (now little) code over. fixes: neos/neos-development-collection#3588
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This line still holds on to the last used copy path operation - and we should find a better way of handling this usecase.
neos-development-collection/Neos.NodeTypes.Navigation/Resources/Private/Fusion/Root.fusion
Line 15 in 939da09
its copied from
neos-development-collection/Neos.Neos/Resources/Private/Fusion/Prototypes/Content.fusion
Lines 14 to 33 in abbb796
one could even argue - this thing has no 'justified' usecase : P
The text was updated successfully, but these errors were encountered: