afeld / backbone-nested

A plugin to make Backbone.js keep track of nested attributes - looking for maintainers! https://github.com/afeld/backbone-nested/issues/157
https://afeld.github.com/backbone-nested/
MIT License
444 stars 83 forks source link

Use safe version of hasOwnProperty. #145

Closed mordentware closed 3 months ago

mordentware commented 9 years ago

The attributes property was called with the assumption that a hasOwnProperty method existed. This is not the case if using null as the top-level parent for the attributes property, as some 3rd party Backbone libraries introduced.