FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add assetStringify for asset based properties by mrxz · Pull Request #5544 · aframevr/aframe · GitHub

Add assetStringify for asset based properties - #5544

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-asset-stringify
Jun 18, 2024
Merged

Add assetStringify for asset based properties#5544
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-asset-stringify

Conversation

mrxz commented Jun 16, 2024

Copy link
Copy Markdown
Contributor

Description:
Asset based property types could either be a string, or directly refer to an HTMLElement (using an id selector, or passing instance to it). The stringification used for these property types was just the default one, which works for strings, but fails for HTMLElement instances.

This PR introduces an assetStringify that attempts to construct a suitable id selector. In case that isn't possible it will resort to using the src attribute instead.

See aframevr/aframe-inspector#722 for some context where this caused issues when using flushToDOM.

Changes proposed:

  • Introduce an assetStringify for asset based property types

dmarcos commented Jun 18, 2024

Copy link
Copy Markdown
Member

Thank you!

dmarcos commented Jun 18, 2024

Copy link
Copy Markdown
Member

Thanks so much!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL