From 4989890ee0a05634a3f9f4e9e8999a1fe98ccca7 Mon Sep 17 00:00:00 2001 From: "ADELDIMA-PC\\AdelDima" Date: Mon, 6 Nov 2017 10:31:33 +0100 Subject: [PATCH] Now you can use additional API with jQuery Wrapper --- lazyload.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lazyload.js b/lazyload.js index fc7fdf7c..5c1c5ce0 100644 --- a/lazyload.js +++ b/lazyload.js @@ -164,8 +164,7 @@ $.fn.lazyload = function (options) { options = options || {}; options.attribute = options.attribute || "data-src"; - new LazyLoad($.makeArray(this), options); - return this; + return new LazyLoad($.makeArray(this), options); }; }