Skip to content

Instantly share code, notes, and snippets.

@thenickcox
Last active August 29, 2015 14:11
Show Gist options
  • Save thenickcox/e372d23362814eddb724 to your computer and use it in GitHub Desktop.
Save thenickcox/e372d23362814eddb724 to your computer and use it in GitHub Desktop.
App.albums = new App.Collections.Albums()
// child {length: 0, models: Array[0], _byId: Object, constructor: function, model: function…}
App.albums.fetch();
// Object {readyState: 1, getResponseHeader: function, getAllResponseHeaders: function, setRequestHeader: function, overrideMimeType: function…}
App.albums.first()
// child {cid: "c1", attributes: Object, collection: child, _changing: false, _previousAttributes: Object…}
App.albums.first().get('title')
// “A Love Supreme"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment