balderdashy/mast

region.remove(0) doesn't work

Closed this issue · 3 comments

Can't remove a child component/template from a region if that child template has an index of 0-- i.e.

// in a component somewhere:
this.myRegion.remove(0); // doesn't work
this.myRegion.remove(4); // works fine

Probably just a == that needs to be an === or a ! that needs to be a typeof x==='undefined'

Actually calls to remove() with other indices are also failing

Actually not 100% sure this is true-- will double-check.

Doh nevermind it's golden. Sorry!