},
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 = '<iframe src="' + spot.url + '" width="' + spot.width + '" height="' + spot.height + '" frameborder="0" allowtransparency="true"></iframe>';
+ spot = {
+ url: 'https://embed.spotify.com/follow/1/?uri=' + uri +'&size=detail&theme=dark',
+ width: 300,
+ height: 56
+ };
+ break;
+ }
+
+ html = '<iframe src="' + spot.url + '" width="' + spot.width + '" height="' + spot.height + '" frameborder="0" allowtransparency="true"></iframe>';
return $(html);
},