Created
May 16, 2012 15:08
-
-
Save mlynch/2711064 to your computer and use it in GitHub Desktop.
UserAppVersions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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