Authored by 郭成尧

del-mlellipsis

... ... @@ -5,7 +5,6 @@
*/
let $ = require('yoho-jquery'),
ellipsis = require('yoho-mlellipsis'),
lazyLoad = require('yoho-jquery-lazyload'),
Swiper = require('yoho-swiper2');
... ... @@ -26,8 +25,6 @@ let getDynamicData = require('./list-dynamic');
require('common');
ellipsis.init();
if ($loadMoreInfo.length > 0) {
$loading = $loadMoreInfo.children('.loading');
$noMore = $loadMoreInfo.children('.no-more');
... ... @@ -72,15 +69,6 @@ function initSwiper(typeId) {
*/
function setLazyLoadAndMellipsis($infos) {
lazyLoad($infos.find('img.lazy'));
$infos.each(function() {
let $this = $(this),
$title = $this.find('.info-title'),
$text = $this.find('.info-text');
$title[0].mlellipsis(2);
$text[0].mlellipsis(2);
});
}
/**
... ...