From e0f70e57a0ef2541593cb9d31927e80007b99c09 Mon Sep 17 00:00:00 2001 From: Dimitrije-Ciric Date: Sat, 7 May 2022 18:33:09 +0200 Subject: [PATCH] Replaced 'for each' with 'for i = 0 to ...' --- components/PlaystateTask.brs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/PlaystateTask.brs b/components/PlaystateTask.brs index 476449c7..03a407b9 100755 --- a/components/PlaystateTask.brs +++ b/components/PlaystateTask.brs @@ -41,8 +41,11 @@ function PlaystateDefaults(params = {} as object) '"PlaySessionId": "", '"RepeatMode": "RepeatNone" } - for each p in params.items() - new_params[p.key] = p.value + + paramsArray = params.items() + for i = 0 to paramsArray.count() - 1 + item = paramsArray[i] + new_params[item.key] = item.value end for return FormatJson(new_params) end function