Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit fcd42b3

Browse files
committed
[[Bug 13825/18097]] Common Library Updates
Update getProp cREVGeneral to use `the target` directly, eliminating use of rugged ID Added `HTML5` to list of platforms in `_revEnvironmentPlatform`
1 parent a8e59e2 commit fcd42b3

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

Toolset/libraries/revcommonlibrary.livecodescript

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -145,24 +145,15 @@ getProp revProfile
145145
end revProfile
146146

147147
getProp cREVGeneral[pWhichProp]
148-
local tTarget
149-
if the environment is "development" then
150-
# OK-2008-04-14/OK-2008-06-02 : The long id will return an invalid reference
151-
# when in edit group mode, use the "rugged id" when in the development environment
152-
put revRuggedId(the long id of the target) into tTarget
153-
else
154-
put the long id of the target into tTarget
155-
end if
156-
157148
if pWhichProp is "revUniqueID" then
158149
lock messages
159150
local tRevUniqueID
160-
put the cREVGeneral["revUniqueID"] of tTarget into tRevUniqueID
151+
put the cREVGeneral["revUniqueID"] of the target into tRevUniqueID
161152
unlock messages
162153

163154
if tRevUniqueID is empty then
164155
put the milliseconds into tRevUniqueID
165-
set the cREVGeneral["revUniqueID"] of tTarget to tRevUniqueID
156+
set the cREVGeneral["revUniqueID"] of the target to tRevUniqueID
166157
end if
167158
return tRevUniqueID
168159
end if
@@ -173,8 +164,8 @@ getProp cREVGeneral[pWhichProp]
173164
lock messages
174165

175166
local tProfile
176-
put the cREVGeneral["profile"] of tTarget into tProfile
177-
if tProfile is empty or tProfile is the cREVGeneral["masterName"] of tTarget then put "Master" into tProfile
167+
put the cREVGeneral["profile"] of the target into tProfile
168+
if tProfile is empty or tProfile is the cREVGeneral["masterName"] of the target then put "Master" into tProfile
178169
unlock messages
179170
return tProfile
180171
end cREVGeneral
@@ -1442,6 +1433,9 @@ private function _revEnvironmentPlatform
14421433
case "android"
14431434
put "android" into tPlatform
14441435
break
1436+
case "HTML5"
1437+
put "html5" into tPlatform
1438+
break
14451439
default
14461440
put "Unsupported" into tPlatform
14471441
break

0 commit comments

Comments
 (0)