Showing
1 changed file
with
3 additions
and
1 deletions
@@ -47,11 +47,13 @@ function setLazyLoadAndMellipsis($infos) { | @@ -47,11 +47,13 @@ function setLazyLoadAndMellipsis($infos) { | ||
47 | * @params $container 逛资讯列表容器 | 47 | * @params $container 逛资讯列表容器 |
48 | */ | 48 | */ |
49 | function initInfosEvt($container) { | 49 | function initInfosEvt($container) { |
50 | + var cHammer; | ||
51 | + | ||
50 | if (typeof $container === 'undefined') { | 52 | if (typeof $container === 'undefined') { |
51 | return; | 53 | return; |
52 | } | 54 | } |
53 | 55 | ||
54 | - var cHammer = new Hammer($container[0]); | 56 | + cHammer = new Hammer($container[0]); |
55 | 57 | ||
56 | cHammer.on('tap', function(e) { | 58 | cHammer.on('tap', function(e) { |
57 | var $this = $(e.target), | 59 | var $this = $(e.target), |
-
Please register or login to post a comment