Permalink
Browse files

Just resolve if you try to reload the current playlist

  • Loading branch information...
1 parent 6d78b29 commit fbab33eb5f32069d2f88169b4eac0de3b2421a74 @jwheare committed Dec 16, 2009
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/js/controllers/playlist.controller.js
@@ -161,6 +161,11 @@ Playlist.prototype = {
this.load(playlistItem.data('playlist'));
},
load: function (playlist) {
+ if (this.current == playlist) {
+ // Already loaded, just resolve
+ PLAYDAR.resolve_current_playlist();
+ return;
+ }
// Cancel Playdar
PLAYDAR.cancel_playdar_resolve();
// Unload the current playlist

0 comments on commit fbab33e

Please sign in to comment.