mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-02-07 06:16:43 +01:00
Switched to CoffeeScript string interpolation
This commit is contained in:
parent
2a7e774df5
commit
a46a66f230
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ module.exports = angular.module('ponyfm').factory('track-stats', [
|
|||
loadStats: (id) ->
|
||||
return def if def
|
||||
def = new $.Deferred()
|
||||
$http.get('/api/web/tracks/' + id + '/stats').success (stats) ->
|
||||
url = "/api/web/tracks/#{ id }/stats"
|
||||
$http.get(url).success (stats) ->
|
||||
def.resolve stats
|
||||
|
||||
def.promise()
|
||||
|
|
Loading…
Reference in a new issue