zy856n
9 years agoVisitor
Scene graph components preserve cases
It came to this is a known issue, with context of bright script CI. I pass an associative array to a component P in bright script:
Following is P component:
Then in the script when I retain this event:
m.top.event gives { "firstkeywatchMe":"1", "secondskeywatchme":"2" }. I hope the case preserved, at least provide API or toggle to preserve case or not. There are work arounds, but this appears a bug to me.
-- Regards
p.event = { "firstKeyWatchMe":"1", "secondKeyWatchMe":"2" }
Following is P component:
<component name="P" extends="Group" >
<interface>
<field id="event" type="assocarray" />
...
Then in the script when I retain this event:
<script type="text/brightscript" >
<![CDATA[
function func()
m.top.event <--
end function
...
]]>
</script>
...
m.top.event gives { "firstkeywatchMe":"1", "secondskeywatchme":"2" }. I hope the case preserved, at least provide API or toggle to preserve case or not. There are work arounds, but this appears a bug to me.
-- Regards