vitaly-t / excellent

Basic DOM Component Framework
https://vitaly-t.github.io/excellent/
MIT License
57 stars 5 forks source link

Cannot globally locate extended controllers by name #12

Closed vitaly-t closed 6 years ago

vitaly-t commented 6 years ago

Expected Behavior

ERoot.find and ERoot.findOne are supposed to be able to find all created controllers, including the extended ones. The same goes for EController.find and EController.findOne - they are supposed to be able to find extended controllers, and not just the explicit ones.

Actual Behavior

The above methods can only find explicit controller names, but not the extended ones.

Steps to Reproduce

Create an alias name, and try to find it during initialization. It will fail.

Environment

vitaly-t commented 6 years ago

Resolved in version 0.7.0.

The solution was a major update, adding new event onPostInit, as the only point at which it is possible to locate and communicate with controllers created through extension.

vitaly-t commented 6 years ago

Note that version 0.9.0 renamed the event into onReady.