Spaceface16518 / Periodic

MIT License
0 stars 0 forks source link

Use Event Listeners #3

Closed Spaceface16518 closed 6 years ago

Spaceface16518 commented 6 years ago

The two js files need to be able to "talk" to each other. You can achieve this by adding event listeners on single.js and event emitters on index.js. Here is a link for a website that explains how to use event listeners.

Spaceface16518 commented 6 years ago

There is also a possibility to use only one renderer js file so that there is no inconsistency that may happen when trying to use asynchronous technology across multiple files. There would be inherent challenges to that though. ID's would have to be unique so that the file didn't accidentally change something on one file and not the other. That's the main one at least.

Spaceface16518 commented 6 years ago

Because of extended time as a duplicate, I am closing this issue. It is obviously the same as #4, and not necessary at all.