KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm trying to keep an array of object literals in sync with server data. These objects are being placed on a Google map via backbone.googlemaps extension. I have a collection: var LocationList = Backbone.Collection.extend({ model: Location, url: '/locations' }) How can I grab an array of object literals from this LocationList collection? My goal is such: [{name: "Home", address: "123 Pleasant St"}, {name: "Work", address: "123 Unpleasant St"}]
Tags (comma-separated)
Save Edits
Cancel