Authored by 梁志锋

update undefined

... ... @@ -117,7 +117,7 @@ $('.info-list .title, .one-good .reco-name').each(function() {
});
//offset.left约等于marginLeft的值则表示介绍被换行,则清除intro的paddingTop让其更靠近头像和作者名
if (parseInt($authorIntro.offset().left, 10) === parseInt($authorIntro.css('margin-left'), 10)) {
if ($authorIntro && parseInt($authorIntro.offset().left, 10) === parseInt($authorIntro.css('margin-left'), 10)) {
$authorIntro.css('padding-top', 0);
}
... ...
... ... @@ -47,6 +47,10 @@ function setLazyLoadAndMellipsis($infos) {
* @params $container 逛资讯列表容器
*/
function initInfosEvt($container) {
if (typeof $container === 'undefined') {
return;
}
var cHammer = new Hammer($container[0]);
cHammer.on('tap', function(e) {
... ...