Skip to content

Commit dcfbcd4

Browse files
author
sentsin
committed
Merge pull request layui#19 from xuebingwang/2.x
Update layer.ext.js
2 parents c534fc8 + e3b6d7a commit dcfbcd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extend/layer.ext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ layer.photos = function(options, loop, key){
9696
if(!type){ //页面直接获取
9797
var parent = $(options.photos), img = parent.find(options.img||'img');
9898
if (img.length === 0) return;
99-
loop || parent.find(photos.img||'img').each(function(index){
99+
loop || img.each(function(index){
100100
var othis = $(this);
101101
data.push({
102102
alt: othis.attr('alt'),

0 commit comments

Comments
 (0)