Skip to content

Instantly share code, notes, and snippets.

@beautyfree
Forked from nosalvage/loop.js
Last active August 29, 2015 14:23
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 beautyfree/5644a55755069756e37f to your computer and use it in GitHub Desktop.
Save beautyfree/5644a55755069756e37f to your computer and use it in GitHub Desktop.
angular.forEach(items, function(item, key) {
if(item.attachments){
angular.forEach(item.attachments, function(attachment, key) {
if(attachment.type == 'video') {
feed.getVideo(attachment.video.owner_id, attachment.video.owner_id+'_'+attachment.video.id).then(function(result){
videos[item.id].player = result.data.response.items[0].player;
});
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment