From 6388af175932313e285cbeb00b8ad2b4d8966d24 Mon Sep 17 00:00:00 2001 From: Darren Date: Wed, 31 Dec 2014 14:50:58 +0000 Subject: [PATCH] Spotify media message consistency + cleanup --- client/src/views/mediamessage.js | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/client/src/views/mediamessage.js b/client/src/views/mediamessage.js index 494d7b2..cd1702f 100644 --- a/client/src/views/mediamessage.js +++ b/client/src/views/mediamessage.js @@ -135,29 +135,29 @@ _kiwi.view.MediaMessage = Backbone.View.extend({ }, spotify: function () { - var uri = this.$el.data('uri'); - var method = this.$el.data('method'); - var that = this; + var uri = this.$el.data('uri'), + method = this.$el.data('method'), + spot, html; switch (method) { case "track": case "album": - var spot = { - url: 'https://embed.spotify.com/?uri=' + uri, - width: 300, - height: 80 - }; - break; + spot = { + url: 'https://embed.spotify.com/?uri=' + uri, + width: 300, + height: 80 + }; + break; case "artist": - var spot = { - url: 'https://embed.spotify.com/follow/1/?uri=' + uri +'&size=detail&theme=dark', - width: 300, - height: 56 - }; - break; - }; - - var html = ''; + spot = { + url: 'https://embed.spotify.com/follow/1/?uri=' + uri +'&size=detail&theme=dark', + width: 300, + height: 56 + }; + break; + } + + html = ''; return $(html); }, -- 2.25.1