question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

remove newData and oldData from componentchanged event in documentation version 0.7.0

See original GitHub issue

Hi,

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:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
machenmusikcommented, Oct 25, 2017

@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?

0reactions
jafetmoralescommented, Oct 25, 2017

Something along these lines maybe: warn('event.detail.newData is deprecated. Use event.target.getAttribute(event.detail.name) instead.');

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found