appcelerator/alloy — pull request #70 by pegli (2012-09-24 16:00:55+00:00)
Title: feature request: add lifecycle hook for collections

In addition to beforeModelCreate and afterModelCreate, it would be helpful for me to have a afterCollectionCreate that allows me to add methods and properties to my Collection prototype inside my persistence adapter. I know that this can be done in the actual model .js file, of course, but in my use case there are functions and values that should be common to all models, so I'd rather not have to copy and paste that code everywhere.