diff --git a/src/Images/Gallery.coffee b/src/Images/Gallery.coffee index 78448bf55..38fee7532 100644 --- a/src/Images/Gallery.coffee +++ b/src/Images/Gallery.coffee @@ -133,8 +133,7 @@ Gallery = load: (thumb, errorCB) -> ext = thumb.href.match /\w*$/ elType = {'webm': 'video', 'pdf': 'iframe'}[ext] or 'img' - file = $.el elType, - title: thumb.title + file = $.el elType $.extend file.dataset, thumb.dataset $.on file, 'error', errorCB file.src = thumb.href