Skip to content

Instantly share code, notes, and snippets.

@mlynch
Created May 11, 2012 17:03
Show Gist options
  • Save mlynch/2661008 to your computer and use it in GitHub Desktop.
Save mlynch/2661008 to your computer and use it in GitHub Desktop.
UserAppVersions
var versions = new UserAppVersions();
versions.id = appId;
versions.fetch({
error: function() {
console.log('Unable to load user app versions');
},
success: function(versions) {
console.log('Versions', versions);
// iterate over them with the each function, or with a for loop over version.models
versions.each(function(version) {
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment