lazojs / lazo

A client-server web framework built on Node.js that allows front-end developers to easily create a 100% SEO compliant, component MVC structured web application with an optimized first page load.
MIT License
366 stars 48 forks source link

Collection items (models) missing name parameter #274

Closed adam-26 closed 9 years ago

adam-26 commented 9 years ago

When a model is added to a collection using collection.add(), the model is not assigned a 'name' property. This causes view attributes to be incorrectly rendered.

I'm not sure if this is the best solution, but this fix ensure any models added to a collection have the model name assigned.