aframevr / aframe-inspector

:mag: Visual inspector tool for A-Frame. Hit *<ctrl> + <alt> + i* on any A-Frame scene.
https://aframe.io/aframe-inspector/examples/
MIT License
655 stars 203 forks source link

Avoiding setAttribute() side effects. #490

Closed delapuente closed 7 years ago

delapuente commented 7 years ago

While optimizing components for the clipboard representation, calling setAttribute() directly could have side effects on entity's components already processed (such as re-setting properties already removed). To avoid side effects, HTMLElement original setAttribute() and removeAttribute() functions are used instead.

fernandojsg commented 7 years ago

Now it's looking great again thanks! ;)