Skip to content

Conversation

ksacry
Copy link

@ksacry ksacry commented Aug 14, 2012

The response from vimeo is either an array of objects if using chunks, or just one array with id and size if using one chunk.

ksacry added 2 commits August 14, 2012 11:13
The response from vimeo is either an array of objects if using chunks, or just one array with id and size if using one chunk.
I was originally just checking if chunks where used to determine if the return was an array of classes or just an array.
This failed if there was only one chunk.
This now checks for  the key 0 meaning it's an array of objects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant