Merge pull request #19 from xuebingwang/2.x

Update layer.ext.js
pull/23/head
sentsin 2016-01-08 00:01:50 +08:00
commit dcfbcd4946
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ layer.photos = function(options, loop, key){
if(!type){ //页面直接获取 if(!type){ //页面直接获取
var parent = $(options.photos), img = parent.find(options.img||'img'); var parent = $(options.photos), img = parent.find(options.img||'img');
if (img.length === 0) return; if (img.length === 0) return;
loop || parent.find(photos.img||'img').each(function(index){ loop || img.each(function(index){
var othis = $(this); var othis = $(this);
data.push({ data.push({
alt: othis.attr('alt'), alt: othis.attr('alt'),