As I worked with Y.App
it became clear that while Y.View
is a great abstraction it would be easy to overwhelm a single instance with way too much functionality. This is my attempt to solve that issue by allowing multiple child views to be attached to a single parent view via an extension.
The extension is mixed into the parent view like any other extension using Y.Base.create
.
var Parent = Y.Base.create("view", Y.View, [