@@ -20,19 +20,6 @@ var View = /** @class */ (function () {
2020 View . prototype . displayThisArray = function ( array ) {
2121 displayArray ( JSON . stringify ( array ) ) ;
2222 } ;
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- } ;
3623 View . prototype . setThisArrow = function ( index ) {
3724 var forward = function ( index ) {
3825 return function ( ) {
@@ -46,32 +33,6 @@ var View = /** @class */ (function () {
4633 } ( index ) ;
4734 manager . addEvent ( new FrontendEvent ( forward , backward , this . animSpeed ) ) ;
4835 } ;
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- } ;
7536 View . prototype . connectThisNodes = function ( child , parent ) {
7637 var forwardSteps = function ( child , parent ) {
7738 return function ( ) {
@@ -85,19 +46,6 @@ var View = /** @class */ (function () {
8546 } ( child , parent ) ;
8647 manager . addEvent ( new FrontendEvent ( forwardSteps , backwardSteps , this . animSpeed ) ) ;
8748 } ;
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- } ;
10149 View . prototype . highlightThisSortElem = function ( index , color ) {
10250 var forward = function ( index , color ) {
10351 return function ( ) {
@@ -111,27 +59,6 @@ var View = /** @class */ (function () {
11159 } ( index ) ;
11260 manager . addEvent ( new FrontendEvent ( forward , backward , this . animSpeed ) ) ;
11361 } ;
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- } ;
13562 View . prototype . stepForward = function ( ) {
13663 this . clickedPlay = false ;
13764 manager . next ( ) ;
@@ -168,19 +95,6 @@ var View = /** @class */ (function () {
16895 setValueAtIndex ( i , i ) ;
16996 }
17097 } ;
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- } ;
18498 View . prototype . setSlow = function ( ) {
18599 manager . delayTime = 1500 ;
186100 this . restartManager ( ) ;
@@ -333,12 +247,12 @@ var View = /** @class */ (function () {
333247 return function ( ) {
334248 selectIndex ( 0 , true ) ;
335249 highlightNode ( 0 , "orange" ) ;
336- sortHighlightElem ( this . sortIndex , "orange" ) ;
250+ sortHighlightElem ( sortIndex , "orange" ) ;
337251 } ;
338252 } ( arrIndex , sortIndex , color ) ;
339253 var backward = function ( index1 , index2 , color ) {
340254 return function ( ) {
341- removeSortHighlight ( this . sortIndex ) ;
255+ removeSortHighlight ( sortIndex ) ;
342256 removeHighlight ( 0 ) ;
343257 selectIndex ( 0 , false ) ;
344258 } ;
0 commit comments