@@ -20,19 +20,6 @@ var View = /** @class */ (function () {
20
20
View . prototype . displayThisArray = function ( array ) {
21
21
displayArray ( JSON . stringify ( array ) ) ;
22
22
} ;
23
- View . prototype . selectThisIndex = function ( index , b ) {
24
- var forwardSteps = function ( index , b ) {
25
- return function ( ) {
26
- selectIndex ( index , b ) ;
27
- } ;
28
- } ( index , b ) ;
29
- var backwardSteps = function ( index , b ) {
30
- return function ( ) {
31
- selectIndex ( index , ! b ) ;
32
- } ;
33
- } ( index , b ) ;
34
- manager . addEvent ( new FrontendEvent ( forwardSteps , backwardSteps , this . animSpeed ) ) ;
35
- } ;
36
23
View . prototype . setThisArrow = function ( index ) {
37
24
var forward = function ( index ) {
38
25
return function ( ) {
@@ -46,32 +33,6 @@ var View = /** @class */ (function () {
46
33
} ( index ) ;
47
34
manager . addEvent ( new FrontendEvent ( forward , backward , this . animSpeed ) ) ;
48
35
} ;
49
- View . prototype . setValueAtThisIndex = function ( i , bValue , oldVal ) {
50
- var forwardSteps = function ( i , bValue ) {
51
- return function ( ) {
52
- setValueAtIndex ( i , bValue ) ;
53
- } ;
54
- } ( i , bValue ) ;
55
- var backwardSteps = function ( i , oldVal ) {
56
- return function ( ) {
57
- setValueAtIndex ( i , oldVal ) ;
58
- } ;
59
- } ( i , oldVal ) ;
60
- manager . addEvent ( new FrontendEvent ( forwardSteps , backwardSteps , this . animSpeed ) ) ;
61
- } ;
62
- View . prototype . setValueAtThisSortIndex = function ( i , bValue ) {
63
- var forwardSteps = function ( i , bValue ) {
64
- return function ( ) {
65
- setValueAtSortIndex ( i , bValue ) ;
66
- } ;
67
- } ( i , bValue ) ;
68
- var backwardSteps = function ( i , bValue ) {
69
- return function ( ) {
70
- setValueAtSortIndex ( i , "" ) ;
71
- } ;
72
- } ( i , bValue ) ;
73
- manager . addEvent ( new FrontendEvent ( forwardSteps , backwardSteps , this . animSpeed ) ) ;
74
- } ;
75
36
View . prototype . connectThisNodes = function ( child , parent ) {
76
37
var forwardSteps = function ( child , parent ) {
77
38
return function ( ) {
@@ -85,19 +46,6 @@ var View = /** @class */ (function () {
85
46
} ( child , parent ) ;
86
47
manager . addEvent ( new FrontendEvent ( forwardSteps , backwardSteps , this . animSpeed ) ) ;
87
48
} ;
88
- View . prototype . highlightThisNode = function ( index , color ) {
89
- var forward = function ( index , color ) {
90
- return function ( ) {
91
- highlightNode ( index , color ) ;
92
- } ;
93
- } ( index , color ) ;
94
- var backward = function ( index ) {
95
- return function ( ) {
96
- removeHighlight ( index ) ;
97
- } ;
98
- } ( index ) ;
99
- manager . addEvent ( new FrontendEvent ( forward , backward , this . animSpeed ) ) ;
100
- } ;
101
49
View . prototype . highlightThisSortElem = function ( index , color ) {
102
50
var forward = function ( index , color ) {
103
51
return function ( ) {
@@ -111,27 +59,6 @@ var View = /** @class */ (function () {
111
59
} ( index ) ;
112
60
manager . addEvent ( new FrontendEvent ( forward , backward , this . animSpeed ) ) ;
113
61
} ;
114
- View . prototype . removeThisHighlight = function ( index ) {
115
- // Find the current color
116
- var color = "" ;
117
- var classList = document . getElementById ( 'arrayElem' + index ) . className . split ( / \s + / ) ;
118
- for ( var i = 0 ; i < classList . length ; i ++ ) {
119
- if ( classList [ i ] === 'orange' || classList [ i ] === 'green' ) {
120
- color = classList [ i ] ;
121
- }
122
- }
123
- var forward = function ( index ) {
124
- return function ( ) {
125
- removeHighlight ( index ) ;
126
- } ;
127
- } ( index ) ;
128
- var backward = function ( index , color ) {
129
- return function ( ) {
130
- highlightNode ( index , color ) ;
131
- } ;
132
- } ( index , color ) ;
133
- manager . addEvent ( new FrontendEvent ( forward , forward , this . animSpeed ) ) ;
134
- } ;
135
62
View . prototype . stepForward = function ( ) {
136
63
this . clickedPlay = false ;
137
64
manager . next ( ) ;
@@ -168,19 +95,6 @@ var View = /** @class */ (function () {
168
95
setValueAtIndex ( i , i ) ;
169
96
}
170
97
} ;
171
- View . prototype . screenLockThis = function ( locked ) {
172
- var lck = function ( lock ) {
173
- return function ( ) {
174
- screenLock ( lock ) ;
175
- } ;
176
- } ( locked ) ;
177
- var notLck = function ( lock ) {
178
- return function ( ) {
179
- screenLock ( ! lock ) ;
180
- } ;
181
- } ( locked ) ;
182
- manager . addEvent ( new FrontendEvent ( lck , notLck , this . animSpeed ) ) ;
183
- } ;
184
98
View . prototype . setSlow = function ( ) {
185
99
manager . delayTime = 1500 ;
186
100
this . restartManager ( ) ;
@@ -333,12 +247,12 @@ var View = /** @class */ (function () {
333
247
return function ( ) {
334
248
selectIndex ( 0 , true ) ;
335
249
highlightNode ( 0 , "orange" ) ;
336
- sortHighlightElem ( this . sortIndex , "orange" ) ;
250
+ sortHighlightElem ( sortIndex , "orange" ) ;
337
251
} ;
338
252
} ( arrIndex , sortIndex , color ) ;
339
253
var backward = function ( index1 , index2 , color ) {
340
254
return function ( ) {
341
- removeSortHighlight ( this . sortIndex ) ;
255
+ removeSortHighlight ( sortIndex ) ;
342
256
removeHighlight ( 0 ) ;
343
257
selectIndex ( 0 , false ) ;
344
258
} ;
0 commit comments