@@ -43,8 +43,8 @@ var TourView = View.extend({
43
43
}
44
44
} ,
45
45
showFeature : function ( ev ) {
46
- var nCLick = ev . target . getAttribute ( 'data-n' ) ,
47
- that = this ;
46
+ var nCLick = ev . target . getAttribute ( 'data-n' ) ;
47
+ var that = this ;
48
48
49
49
if ( nCLick === null ) {
50
50
return false ;
@@ -70,9 +70,8 @@ var TourView = View.extend({
70
70
this . showHidePreviousNextButtons ( ) ;
71
71
} ,
72
72
showPreviousFeature : function ( ) {
73
- var currentFeature = this . tourCount ,
74
- previousFeature = this . tourCount - 1 ,
75
- that = this ;
73
+ var previousFeature = this . tourCount - 1 ;
74
+ var that = this ;
76
75
77
76
// deselect old
78
77
$ ( '#features li.selected' ) . removeClass ( 'selected' ) ;
@@ -81,7 +80,7 @@ var TourView = View.extend({
81
80
// select new
82
81
$ ( '#features li#f' + previousFeature ) . addClass ( 'selected' ) ;
83
82
84
- $ ( '#animation-gif' ) . one ( 'webkitTransitionEnd' , function ( event ) {
83
+ $ ( '#animation-gif' ) . one ( 'webkitTransitionEnd' , function ( ) {
85
84
that . $animationGIF . src = that . tourImagesFolder + 'f' + previousFeature + '.gif' ;
86
85
$ ( '#animation-gif' ) . css ( 'opacity' , '1' ) ;
87
86
} ) ;
@@ -93,9 +92,8 @@ var TourView = View.extend({
93
92
this . showHidePreviousNextButtons ( ) ;
94
93
} ,
95
94
showNextFeature : function ( ) {
96
- var currentFeature = this . tourCount ,
97
- nextFeature = this . tourCount + 1 ,
98
- that = this ;
95
+ var nextFeature = this . tourCount + 1 ;
96
+ var that = this ;
99
97
100
98
// deselect old
101
99
$ ( '#features li.selected' ) . removeClass ( 'selected' ) ;
@@ -104,7 +102,7 @@ var TourView = View.extend({
104
102
// select new
105
103
$ ( '#features li#f' + nextFeature ) . addClass ( 'selected' ) ;
106
104
107
- $ ( '#animation-gif' ) . one ( 'webkitTransitionEnd' , function ( event ) {
105
+ $ ( '#animation-gif' ) . one ( 'webkitTransitionEnd' , function ( ) {
108
106
that . $animationGIF . src = that . tourImagesFolder + 'f' + nextFeature + '.gif' ;
109
107
$ ( '#animation-gif' ) . css ( 'opacity' , '1' ) ;
110
108
} ) ;
0 commit comments