@@ -28,13 +28,13 @@ var TourView = View.extend({
2828 this . $tourRemove = this . query ( '#tour-remove' ) ;
2929 } ,
3030 showHidePreviousNextButtons : function ( ) {
31- if ( this . tourCount === 0 ) {
31+ if ( this . tourCount === 0 ) {
3232 $ ( '.previous-slide' ) . addClass ( 'hide' ) ;
3333 } else {
3434 $ ( '.previous-slide' ) . removeClass ( 'hide' ) ;
3535 }
3636
37- if ( this . tourCount === 4 ) {
37+ if ( this . tourCount === 4 ) {
3838 $ ( '.next-slide' ) . addClass ( 'hide' ) ;
3939 $ ( '#tour-remove' ) . removeClass ( 'hide' ) ;
4040 } else {
@@ -44,17 +44,17 @@ var TourView = View.extend({
4444 } ,
4545 showFeature : function ( ev ) {
4646 var nCLick = ev . target . getAttribute ( 'data-n' ) ,
47- that = this ;
48-
47+ that = this ;
48+
4949 if ( nCLick === null ) {
5050 return false ;
5151 }
5252 var nFeature = parseInt ( nCLick , 10 ) ;
53-
53+
5454 // deselect old
5555 $ ( '#features li.selected' ) . removeClass ( 'selected' ) ;
5656 $ ( '.feature-content.active' ) . removeClass ( 'active' ) ;
57-
57+
5858 // select new
5959 ev . target . className = 'selected' ;
6060
@@ -63,21 +63,21 @@ var TourView = View.extend({
6363 $ ( '#animation-gif' ) . css ( 'opacity' , '1' ) ;
6464 } ) ;
6565 $ ( '#animation-gif' ) . css ( 'opacity' , '0' ) ;
66-
66+
6767 $ ( '.feature-content#f' + nFeature + '-content' ) . addClass ( 'active' ) ;
68-
68+
6969 this . tourCount = nFeature ;
7070 this . showHidePreviousNextButtons ( ) ;
7171 } ,
72- showPreviousFeature : function ( ev ) {
72+ showPreviousFeature : function ( ) {
7373 var currentFeature = this . tourCount ,
74- previousFeature = this . tourCount - 1 ,
75- that = this ;
76-
74+ previousFeature = this . tourCount - 1 ,
75+ that = this ;
76+
7777 // deselect old
7878 $ ( '#features li.selected' ) . removeClass ( 'selected' ) ;
7979 $ ( '.feature-content.active' ) . removeClass ( 'active' ) ;
80-
80+
8181 // select new
8282 $ ( '#features li#f' + previousFeature ) . addClass ( 'selected' ) ;
8383
@@ -86,30 +86,30 @@ var TourView = View.extend({
8686 $ ( '#animation-gif' ) . css ( 'opacity' , '1' ) ;
8787 } ) ;
8888 $ ( '#animation-gif' ) . css ( 'opacity' , '0' ) ;
89-
89+
9090 $ ( '.feature-content#f' + previousFeature + '-content' ) . addClass ( 'active' ) ;
9191
9292 this . tourCount = previousFeature ;
9393 this . showHidePreviousNextButtons ( ) ;
9494 } ,
95- showNextFeature : function ( ev ) {
95+ showNextFeature : function ( ) {
9696 var currentFeature = this . tourCount ,
97- nextFeature = this . tourCount + 1 ,
98- that = this ;
99-
97+ nextFeature = this . tourCount + 1 ,
98+ that = this ;
99+
100100 // deselect old
101101 $ ( '#features li.selected' ) . removeClass ( 'selected' ) ;
102102 $ ( '.feature-content.active' ) . removeClass ( 'active' ) ;
103-
103+
104104 // select new
105105 $ ( '#features li#f' + nextFeature ) . addClass ( 'selected' ) ;
106-
106+
107107 $ ( '#animation-gif' ) . one ( 'webkitTransitionEnd' , function ( event ) {
108108 that . $animationGIF . src = that . tourImagesFolder + 'f' + nextFeature + '.gif' ;
109109 $ ( '#animation-gif' ) . css ( 'opacity' , '1' ) ;
110110 } ) ;
111111 $ ( '#animation-gif' ) . css ( 'opacity' , '0' ) ;
112-
112+
113113 $ ( '.feature-content#f' + nextFeature + '-content' ) . addClass ( 'active' ) ;
114114
115115 this . tourCount = nextFeature ;
0 commit comments