arturadib / agility

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

'add' event not triggered #77

Open butchler opened 12 years ago

butchler commented 12 years ago

In the documentation, it says that the 'add' event will be "fired when a new Agility object is added to the object's container" (http://agilityjs.com/docs/docs.html#events-agility). However, instead of triggering 'add', the _container._insertObject() function is triggering either 'append', 'prepend', 'after', or 'before', depending on which function is used to add the object. I'm not sure which ones you want it to trigger, just letting you know about the conflict so you can fix it as you please.