Showing
1 changed file
with
3 additions
and
1 deletions
@@ -11,7 +11,8 @@ var $nav = $('.category-nav'), | @@ -11,7 +11,8 @@ var $nav = $('.category-nav'), | ||
11 | $categoryContainer = $('.category-container'), | 11 | $categoryContainer = $('.category-container'), |
12 | $contents = $categoryContainer.children('.content'); | 12 | $contents = $categoryContainer.children('.content'); |
13 | 13 | ||
14 | -var $curContent = $contents.not('.hide'); | 14 | +var $curContent = $contents.not('.hide'), |
15 | + $curClickSubLevel; | ||
15 | 16 | ||
16 | var navHammer, ccHammer; | 17 | var navHammer, ccHammer; |
17 | 18 | ||
@@ -72,6 +73,7 @@ ccHammer.on('tap', function(e) { | @@ -72,6 +73,7 @@ ccHammer.on('tap', function(e) { | ||
72 | 73 | ||
73 | $('.sub-level').bind('touchstart', function(e) { | 74 | $('.sub-level').bind('touchstart', function(e) { |
74 | var $cur = $(e.target); | 75 | var $cur = $(e.target); |
76 | + | ||
75 | $cur.addClass('a-highlight'); | 77 | $cur.addClass('a-highlight'); |
76 | 78 | ||
77 | if ($curClickSubLevel) { | 79 | if ($curClickSubLevel) { |
-
Please register or login to post a comment