From 5a4200224309ee37b30e13a444f8a92f8283e009 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 21 Oct 2010 23:08:23 +1100 Subject: [PATCH] Fix track focusing in Melodactyl's :load and :filter. --HG-- extra : rebase_source : f1aa56b7413a785e601b95da5052e94e851bdfbe --- melodactyl/content/player.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/melodactyl/content/player.js b/melodactyl/content/player.js index 4af2caf0..8340b848 100644 --- a/melodactyl/content/player.js +++ b/melodactyl/content/player.js @@ -447,8 +447,8 @@ const Player = Module("player", { SBGetBrowser().loadMediaList(LibraryUtils.mainLibrary, null, null, view, "chrome://songbird/content/mediapages/filtersPage.xul"); - // TODO: make this this.focusTrack work ? - this.focusTrack(view.getItemByIndex(0)); + // TODO: make this player.focusTrack work ? + player.focusTrack(view.getItemByIndex(0)); }, { argCount: "1", @@ -466,7 +466,7 @@ const Player = Module("player", { for ([, playlist] in Iterator(player.getPlaylists())) { if (util.compareIgnoreCase(arg, playlist.name) == 0) { SBGetBrowser().loadMediaList(playlist); - this.focusTrack(this._currentView.getItemByIndex(0)); + player.focusTrack(player._currentView.getItemByIndex(0)); return; } }