eschwartz / backbone.googlemaps

A Backbone JS extension for interacting with the Google Maps API (v3.10)
MIT License
139 stars 55 forks source link

Update backbone.googlemaps.js #30

Closed gigi-budrio closed 10 years ago

gigi-budrio commented 10 years ago

Hi..

in sample.html i find and error (suggested by web console).

it seem that default model for GoogleMaps.LocationCollection isn't GoogleMaps.Location; i resolve adding

model : GoogleMaps.Location, at line 75.. now it works, but i don't know if it's the best way to resolve it.

i hope it helps you.

Bye and thank's for the great job.

eschwartz commented 10 years ago

Thanks for catching this.

You're solution works, but I prefer to set properties on the instance rather than the prototype.