@@ -52,9 +52,9 @@ <h1 id="gui-title"></h1>
5252 const toCommand = ( ) => {
5353 let command = blueprint . command . prefix
5454
55- // Process command conversion in command priority 's
55+ // Process command conversion in command order 's
5656 // ascending order.
57- priorityArr . forEach ( ( bpArr , pri ) => {
57+ orderArr . forEach ( ( bpArr , order ) => {
5858 if ( bpArr ) {
5959 bpArr . forEach ( ( bp ) => {
6060 // Skip if the blueprint does not contain instructions for outputing commands
@@ -109,7 +109,7 @@ <h1 id="gui-title"></h1>
109109 }
110110
111111 /**
112- * Register blueprint with the priority array. Radix sort is
112+ * Register blueprint with the order array. Radix sort is
113113 * implemented to sort arguments with different priorities.
114114 *
115115 * @param {object }: Form item's blueprint
@@ -126,15 +126,15 @@ <h1 id="gui-title"></h1>
126126 }
127127
128128 // Create an array if the given position is null
129- if ( ! priorityArr [ currItemBp . command . order ] ) {
130- priorityArr [ currItemBp . command . order ] = new Array ( )
129+ if ( ! orderArr [ currItemBp . command . order ] ) {
130+ orderArr [ currItemBp . command . order ] = new Array ( )
131131 }
132132
133133 // Set groupId
134134 currItemBp . groupId = groupId
135135
136136 // Push the current blueprint to the array in the specified order
137- priorityArr [ currItemBp . command . order ] . push ( currItemBp )
137+ orderArr [ currItemBp . command . order ] . push ( currItemBp )
138138 }
139139
140140 /**
@@ -212,7 +212,7 @@ <h1 id="gui-title"></h1>
212212 }
213213
214214 const toggleGroup = ( groupId , disabled ) => {
215- priorityArr . forEach ( ( bpArr , pri ) => {
215+ orderArr . forEach ( ( bpArr ) => {
216216 if ( bpArr ) {
217217 bpArr . forEach ( ( bp ) => {
218218 if ( bp . disabled && ! bp . enableOnToggle ) {
@@ -323,7 +323,7 @@ <h1 id="gui-title"></h1>
323323 // Set input's attributes
324324 setInputAttributes ( input , currItemBp )
325325
326- // Register elements with priority array
326+ // Register elements with order array
327327 registerBlueprint ( currItemBp , currGroupId )
328328
329329 } else {
@@ -456,7 +456,7 @@ <h1 id="gui-title"></h1>
456456
457457 base . appendChild ( div )
458458
459- // Register elements with priority array
459+ // Register elements with order array
460460 registerBlueprint ( currItemBp , currGroupId , null )
461461 }
462462 }
@@ -508,9 +508,9 @@ <h1 id="gui-title"></h1>
508508
509509 < script >
510510 // Setup script
511- // Priority array. Priority ranges from 0 to 255
512- const priorityArr = new Array ( )
513- priorityArr . length = 256
511+ // Order array. Order ranges from 0 to 255
512+ const orderArr = new Array ( )
513+ orderArr . length = 256
514514
515515 // Configure title
516516 document . title = ( blueprint && blueprint . meta && blueprint . meta . title ) ? blueprint . meta . title : "Untitled GUI"
0 commit comments