vitaly-t / excellent

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

Method attach returns an array when a single controller name is passed in #20

Closed vitaly-t closed 6 years ago

vitaly-t commented 6 years ago

Expected Behavior

According to the API, method ERoot.attach is supposed to return a single object when it is passed in a single controller.

Actual Behavior

It returns an array of controllers always.

Steps to Reproduce

var a = excellent.attach(e, 'testCtrl');
// a is expected to be an EController object, and not [EController].

Environment

vitaly-t commented 6 years ago

Fixed in version 1.0.3.