Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I totally dump current playlist? #18

Closed
theninthnode opened this issue Feb 3, 2014 · 3 comments
Closed

Can I totally dump current playlist? #18

theninthnode opened this issue Feb 3, 2014 · 3 comments

Comments

@theninthnode
Copy link

Hey, great module!

Just wondering if I can totally clear a playlist by doing:

$scope.playlist = [];

and then push new sources into it? That doesn't really work, it just seems to hang when I skip to the next track. Do I need to remove each source individually?

I'm trying to rebuild the playlist based on user actions.

Thanks!

@colthreepv
Copy link
Owner

I think it loses reference if you instance a new Array, try splicing the array of his length (aka emptying it!)

@theninthnode
Copy link
Author

Cheers man that worked!!

@shawnharv
Copy link

+1

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

No branches or pull requests

3 participants