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

Fix duplicate check in registerPropertyType by mrxz · Pull Request #5475 · aframevr/aframe · GitHub

Fix duplicate check in registerPropertyType - #5475

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-duplicate-prevention-property-types
Feb 27, 2024
Merged

Fix duplicate check in registerPropertyType#5475
dmarcos merged 1 commit into
aframevr:masterfrom
mrxz:fix-duplicate-prevention-property-types

Conversation

mrxz commented Feb 27, 2024

Copy link
Copy Markdown
Contributor

Description:
The check preventing duplicate propertyTypes from being registered incorrectly tested the string literal "type" instead of the type argument.

Changes proposed:

  • Fix the duplicate check in registerPropertyType
  • Throw an error instead of logging an error (in line with registerComponent, registerSystem, etc...)

dmarcos commented Feb 27, 2024

Copy link
Copy Markdown
Member

Thanks!

dmarcos merged commit 233a29c into aframevr:master Feb 27, 2024
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