petermichaux / maria

The MVC framework for JavaScript applications. The real MVC. The Smalltalk MVC. The Gang of Four MVC.
BSD 2-Clause "Simplified" License
764 stars 51 forks source link

ElementView removeChild removing from the DOM #61

Closed petermichaux closed 11 years ago

petermichaux commented 11 years ago

When maria.ElementView.prototype.removeChild executes it tries to remove the child view from the parent view's container element. It would be better if it remove's the child view from the childView._rootEl.parentNode because the child might not be attached to the parent view's container element.