|
49 | 49 | <cfargument name="includeConditionals" type="boolean" required="false" default="true" />
|
50 | 50 |
|
51 | 51 | <cfscript>
|
52 |
| - var final = ArrayNew(1); |
| 52 | + var finalArray = ArrayNew(1); |
53 | 53 | var added = StructNew();
|
54 | 54 | var deep = "";
|
55 | 55 | var conditionals = "";
|
|
61 | 61 | deep = _dependencies[i].getDependencies( true );
|
62 | 62 | for( n=1; n LTE ArrayLen( deep ); n++ ){
|
63 | 63 | if ( not StructKeyExists( added, deep[n].getPath() ) ) {
|
64 |
| - ArrayAppend( final, deep[n] ); |
| 64 | + ArrayAppend( finalArray, deep[n] ); |
65 | 65 | added[ deep[n].getPath() ] = true;
|
66 | 66 | }
|
67 | 67 | }
|
68 | 68 | }
|
69 | 69 | if ( not StructKeyExists( added, _dependencies[i].getPath() ) ) {
|
70 |
| - ArrayAppend( final, _dependencies[i] ); |
| 70 | + ArrayAppend( finalArray, _dependencies[i] ); |
71 | 71 | added[ _dependencies[i].getPath() ] = true;
|
72 | 72 | }
|
73 | 73 | }
|
74 | 74 | if ( not includeConditionals ) {
|
75 | 75 | conditionals = ArrayToList( _getConditionalDependencies() );
|
76 |
| - for( i=ArrayLen( final ); i GT 0 ; i-- ){ |
77 |
| - if ( ListFindNoCase( conditionals, final[i].getPath() ) ) { |
78 |
| - ArrayDeleteAt( final, i ); |
| 76 | + for( i=ArrayLen( finalArray ); i GT 0 ; i-- ){ |
| 77 | + if ( ListFindNoCase( conditionals, finalArray[i].getPath() ) ) { |
| 78 | + ArrayDeleteAt( finalArray, i ); |
79 | 79 | }
|
80 | 80 | }
|
81 | 81 | }
|
82 | 82 |
|
83 |
| - return _bubbleSort( final ); |
| 83 | + return _bubbleSort( finalArray ); |
84 | 84 | </cfscript>
|
85 | 85 | </cffunction>
|
86 | 86 |
|
|
0 commit comments