From 1ad6636ce46ae0af69c9af5fb46c474f1312dacb Mon Sep 17 00:00:00 2001 From: wo4wangyu0412 <492278200@qq.com> Date: Mon, 4 Jan 2016 21:19:41 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E5=9B=BE=E7=89=87=E6=87=92=E5=8A=A0?= =?UTF-8?q?=E8=BD=BDoffset=E5=8F=82=E6=95=B0=E4=B8=8D=E7=AE=A1=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ui/LazyImg.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/LazyImg.js b/src/ui/LazyImg.js index ffae5f4..3306d56 100644 --- a/src/ui/LazyImg.js +++ b/src/ui/LazyImg.js @@ -134,6 +134,8 @@ define(function (require) { var main = this.main = lib.g(options.main) || $('.' + options.main)[0]; this.imgs = options.imgs || $('img', main).toArray(); + + $.extend(this.options, options); Lazy.add(main, $.proxy(privates.load, this), options.offset);