Pass uid to service.

This commit is contained in:
noface 2016-11-27 00:33:55 +01:00
parent 03bafe98b0
commit 0699d8f3db

View File

@ -124,7 +124,7 @@ Embedding =
{key, uid, link} = data
service = Embedding.types[key].preview
$.on link, 'mouseover', (e) ->
src = service.call uid
src = service uid
el = $.el 'img',
src: src
id: 'ihover'
@ -435,6 +435,6 @@ Embedding =
for item in data.items when item.id is uid
return item.snippet.title
'Not Found'
preview: ->
"https://img.youtube.com/vi/#{@}/0.jpg"
preview: (uid) ->
"https://img.youtube.com/vi/#{uid}/0.jpg"
]