Authored by 郭成尧

del-mlellipsis

@@ -5,7 +5,6 @@ @@ -5,7 +5,6 @@
5 */ 5 */
6 6
7 let $ = require('yoho-jquery'), 7 let $ = require('yoho-jquery'),
8 - ellipsis = require('yoho-mlellipsis'),  
9 lazyLoad = require('yoho-jquery-lazyload'), 8 lazyLoad = require('yoho-jquery-lazyload'),
10 Swiper = require('yoho-swiper2'); 9 Swiper = require('yoho-swiper2');
11 10
@@ -26,8 +25,6 @@ let getDynamicData = require('./list-dynamic'); @@ -26,8 +25,6 @@ let getDynamicData = require('./list-dynamic');
26 25
27 require('common'); 26 require('common');
28 27
29 -ellipsis.init();  
30 -  
31 if ($loadMoreInfo.length > 0) { 28 if ($loadMoreInfo.length > 0) {
32 $loading = $loadMoreInfo.children('.loading'); 29 $loading = $loadMoreInfo.children('.loading');
33 $noMore = $loadMoreInfo.children('.no-more'); 30 $noMore = $loadMoreInfo.children('.no-more');
@@ -72,15 +69,6 @@ function initSwiper(typeId) { @@ -72,15 +69,6 @@ function initSwiper(typeId) {
72 */ 69 */
73 function setLazyLoadAndMellipsis($infos) { 70 function setLazyLoadAndMellipsis($infos) {
74 lazyLoad($infos.find('img.lazy')); 71 lazyLoad($infos.find('img.lazy'));
75 -  
76 - $infos.each(function() {  
77 - let $this = $(this),  
78 - $title = $this.find('.info-title'),  
79 - $text = $this.find('.info-text');  
80 -  
81 - $title[0].mlellipsis(2);  
82 - $text[0].mlellipsis(2);  
83 - });  
84 } 72 }
85 73
86 /** 74 /**