Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending models or collections? #10

Open
factoidforrest opened this issue Nov 12, 2014 · 0 comments
Open

Extending models or collections? #10

factoidforrest opened this issue Nov 12, 2014 · 0 comments

Comments

@factoidforrest
Copy link

Your documentation doesn't show how to extend the models or collections with more methods like you normally can in backbone. Could I do (coffeescript)

LocationsCollection = Backbone.Leaflet.GeoCollection.extend({
  url:'myurl'
  method: () -> 
    do something
})
locs = new LocationsCollection
locs.fetch()

I also may be missing the documentation for adding more JSON to an existing collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant