Created
March 20, 2013 18:21
-
-
Save vadimdemedes/5207125 to your computer and use it in GitHub Desktop.
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 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