remove image with it doesn't exist

stable
Juanfran 2015-05-08 08:49:07 +02:00
parent 1687bde95c
commit ee99e20c82
1 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,8 @@ ProfileTimelineAttachmentDirective = (template, $compile) ->
el.html(templateHtml)
$compile(el.contents())(scope)
el.find("img").error () -> @.remove()
return {
link: link
scope: {