Authored by 梁志锋

update

... ... @@ -117,8 +117,8 @@ $('.info-list .title, .one-good .reco-name').each(function() {
});
//offset.left约等于marginLeft的值则表示介绍被换行,则清除intro的paddingTop让其更靠近头像和作者名
if ($authorIntro.offset()
&& (parseInt($authorIntro.offset().left, 10) === parseInt($authorIntro.css('margin-left'), 10))) {
if ($authorIntro.offset() && (parseInt($authorIntro.offset().left, 10) ===
parseInt($authorIntro.css('margin-left'), 10))) {
$authorIntro.css('padding-top', 0);
}
... ...
... ... @@ -18,7 +18,7 @@ function init($container) {
var html = '<div class="loading-mask hide"><div class="loading"></div></div>';
hasInit = true;
if ($container === undefined) {
if (typeof $container === 'undefined') {
$container = $page;
}
... ...