Skip to content

Commit

Permalink
fix: more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian authored Oct 16, 2023
1 parent b5d5991 commit 5527ba5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/Internal/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class InternalController extends CoreBase {
for (const [controlId, control] of allControls.entries()) {
// Discover feedbacks to process
if (control.feedbacks && control.feedbacks.feedbacks) {
for (const feedback of control.feedbacks.feedbacks) {
for (let feedback of control.feedbacks.feedbacks) {
if (feedback.instance_id === 'internal') {
if (control.feedbacks.feedbackReplace) {
const newFeedback = this.feedbackUpgrade(feedback, controlId)
Expand All @@ -81,7 +81,7 @@ export default class InternalController extends CoreBase {
for (const action of actions) {
if (action.instance === 'internal') {
// Try and run an upgrade
const newAction = this.actionUpgrade(action)
const newAction = this.actionUpgrade(action, controlId)
if (newAction) {
control.actionReplace(newAction)
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Internal/Variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default class Variables extends CoreBase {
try {
const res = this.instance.variable.parseExpression(feedback.options.expression, 'boolean')

this.#variableSubscriptions[feedback.id] = res.variableIds
this.#variableSubscriptions[feedback.id] = Array.from(res.variableIds)

return res.value
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/EmberPlus.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ class ServiceEmberPlus extends ServiceBase {
if (isNaN(page) || isNaN(bank) || isNaN(node)) return false
if (page < 0 || page > 100) return false

const controlId = CreateBankControlId(page, bank)
const controlId = this.page.getControlIdAtOldBankIndex(page, bank)

switch (node) {
case NODE_STATE: {
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/Rosstalk.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ServiceRosstalk extends ServiceTcpBase {
if (!xy) return

const controlId = this.page.getControlIdAt({
pageNumber: page,
pageNumber: pageNumber,
column: xy[0],
row: xy[1],
})
Expand Down

0 comments on commit 5527ba5

Please sign in to comment.