pull/27/head
sentsin 2016-05-18 14:50:03 +08:00
parent e9d5d7dd10
commit 77ecf930e1
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -865,7 +865,7 @@ layer.photos = function(options, loop, key){
var type = options.photos.constructor === Object; var type = options.photos.constructor === Object;
var photos = type ? options.photos : {}, data = photos.data || []; var photos = type ? options.photos : {}, data = photos.data || [];
var start = photos.start || 0; var start = photos.start || 0;
dict.imgIndex = start + 1; dict.imgIndex = (start|0) + 1;
options.img = options.img || 'img'; options.img = options.img || 'img';