remove newData and oldData from componentchanged event in documentation version 0.7.0
See original GitHub issueHi,
I think the documentation needs to be updated here https://aframe.io/docs/0.7.0/core/entity.html#event-detail
As far as I can tell the newData and oldData properties are no longer present on the componentchanged event.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Event listener 'componentchanged' is only firing for 'rotation ...
Here's the code I'm using that outputs the rotation only... Javascript: document.addEventListener("DOMContentLoaded", function(event) { document ...
Read more >Events - Polymer Project
If you use the listeners object or annotated event listeners, Polymer automatically adds and removes the event listeners. Custom events. To fire a...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@ngokevin I wonder if we should add a warning message into the static evt.detail object for oldName or newName so that if this change breaks code relying on newData or oldData, and you look at the value you are getting, it tells you what you should do instead in human-readable form?
Something along these lines maybe:
warn('event.detail.newData is deprecated. Use event.target.getAttribute(event.detail.name) instead.');