From 243605d66c418a29b1293bcb247df1a89f7ac6dc Mon Sep 17 00:00:00 2001 From: Geng Guitong <30484000+guitong@users.noreply.github.com> Date: Fri, 29 Sep 2017 09:07:08 +0800 Subject: [PATCH] add "else" --- jquery.lazyload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.lazyload.js b/jquery.lazyload.js index b2279aa2..a2daa62f 100644 --- a/jquery.lazyload.js +++ b/jquery.lazyload.js @@ -115,7 +115,7 @@ if (srcset !== null) { $self.attr("srcset", srcset); } - } if ($self.is("video")) { + } else if ($self.is("video")) { $self.attr("poster", original); } else { $self.css("background-image", "url('" + original + "')");