PaulUithol/Backbone-relational — pull request #379 by itoldya (2013-07-14 18:54:10+00:00)
Title: Using related.attributes[ key ] instead of related.get( key ) in toJSON

Hi!
Standard behavior of Backbone.Model.toJSON method is just clone values from attributes dict. In my case i using some conversion in get and set methods, for example:

>> model.attributes.position
[51.344338660599234, 22.3681640625]

>> model.get('position') // return google.maps.LatLng object
P {jb: 51.344338660599234, kb: 22.3681640625, toString: function, b: function, equals: function…}