this fixes the extra errors in the gallery (when leaving an unplayable video)

This commit is contained in:
ccd0 2014-07-27 17:17:42 -07:00
parent b4b35c1ef3
commit c5e2b2ee78

View File

@ -156,7 +156,7 @@ Gallery =
file.src = name.href = @href
$.extend file.dataset, @dataset
nodes.current.pause?()
nodes.current.pause?() unless nodes.current.error
$.replace nodes.current, file
if elType is 'video'
file.loop = true