From 0132fa38b0c044fa4c59b52cac8d5792d7627267 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Sun, 31 Aug 2014 15:23:42 -0500 Subject: [PATCH] * guard against undefined SessionRemoveAllPlayTracks --- web/app/assets/javascripts/session.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/app/assets/javascripts/session.js b/web/app/assets/javascripts/session.js index 06d7ab3b2..1bdb38990 100644 --- a/web/app/assets/javascripts/session.js +++ b/web/app/assets/javascripts/session.js @@ -1464,7 +1464,10 @@ // make sure no previous plays are still going on by accident context.jamClient.SessionStopPlay(); - context.jamClient.SessionRemoveAllPlayTracks(); + if(context.jamClient.SessionRemoveAllPlayTracks) { + // upgrade guard + context.jamClient.SessionRemoveAllPlayTracks(); + } };