ripplejs / ripple

A tiny foundation for building reactive views
http://ripplejs.github.io
1.28k stars 66 forks source link

Emit "mounted" event on child views #30

Closed UhhhWaitWhat closed 10 years ago

UhhhWaitWhat commented 10 years ago

According to this documentation, a mounted event should be triggered, each time a view enters the DOM.

This implies, that each time a view is mounted, each of its child views (attached via .compose()) should emit a mounted event as well.

Currently this is not the case. I will look into this (I guess it should be fairly straightforward to implement this) and see if I can provide a pull-request, but for now I wanted to know your opinions of this, and if this would be indeed the correct, expected behavior.