freezedev / lyria

Lightweight DOM-based game framework
The Unlicense
8 stars 0 forks source link

Make scenes and prefabs promise-based #4

Closed frostney closed 11 years ago

frostney commented 11 years ago

The onActive event from a scene/prefab is not always accurate and the DOM elements are not always accessible.

Polooo2 commented 11 years ago

Do you mean, the onActive event is triggered too early?

frostney commented 11 years ago

Yes, I think that's the case on Webkit-based browsers. Even if it's not, promises should make the code a bit more smaller and less callback hell-y.

frostney commented 11 years ago

Not necessary any more due to #15