arturadib / agility

Javascript MVC for the "write less, do more" programmer
http://agilityjs.com
MIT License
542 stars 70 forks source link

Implemented pre:appended and post:appended hooks being called on appended object #50

Closed tristanls closed 13 years ago

tristanls commented 13 years ago

In our experience with Internet Explorer, we often come across a problem where our 'create' controller attempts to format agility widgets using properties such as width(), position(), etc. A quick fix is to append the object to the DOM, and then run the configuration requiring those properties by triggering a controller. However, this breaks our widget encapsulation. The solution is to provide hooks for before and after the object is appended in order to complete any type of configuration. This way, the users of the widget won't forget to manually trigger controllers and the widgets will work as intended.

tristanls commented 13 years ago

I'm removing this pull request because it seems redundant to the already existing capability of post:append.