Skip to content

Commit

Permalink
Merge pull request layui#19 from xuebingwang/2.x
Browse files Browse the repository at this point in the history
Update layer.ext.js
  • Loading branch information
sentsin committed Jan 7, 2016
2 parents c534fc8 + e3b6d7a commit dcfbcd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extend/layer.ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ layer.photos = function(options, loop, key){
if(!type){ //页面直接获取
var parent = $(options.photos), img = parent.find(options.img||'img');
if (img.length === 0) return;
loop || parent.find(photos.img||'img').each(function(index){
loop || img.each(function(index){
var othis = $(this);
data.push({
alt: othis.attr('alt'),
Expand Down

0 comments on commit dcfbcd4

Please sign in to comment.