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

Fix circular dependencies for INSPECTOR #330

Closed fernandojsg closed 8 years ago

fernandojsg commented 8 years ago

Before we were exporting DEFAULT_COMPONENTS in CommonComponents.js this generates and odd error due to circular dependencies when importing INSPECTOR in TextureWidget.js. I've fixed it by moving DEFAULT_COMPONENTS to a new file DefaultComponents.js.

ngokevin commented 8 years ago

yeah with circ deps, you have to decouple or else it'll return null on require