Skip to content

Instantly share code, notes, and snippets.

@vadimdemedes
Created March 20, 2013 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vadimdemedes/5207125 to your computer and use it in GitHub Desktop.
Save vadimdemedes/5207125 to your computer and use it in GitHub Desktop.
var data = new Chute.API.Assets({ album: 'ALBUM_SHORTCUT', asset: 'ASSET_SHORTCUT' }).toData();
data.on('before:load', function(){
// Started loading
});
data.on('load', function(){
// Finished loading
var assets = data.items(); // alias to extract() method
});
data.load();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment