trevordevore / levure

Application development framework for LiveCode
MIT License
32 stars 14 forks source link

levureAppGet ("key>subkey") doesn't #128

Closed macMikey closed 5 years ago

macMikey commented 5 years ago

levureAppGet accepts key>subkey, but in line 841 it returns sappa[pprop] which omits the key, i.e. it is saying return sappa[subkey] instead of sappa[key][subkey]

trevordevore commented 5 years ago

key>subkey is converted to an index lookup array (see tIndexA). It will be returned on line 836.

macMikey commented 5 years ago

Change line 834 to if the number of elements of tIndexA >= 1

macMikey commented 5 years ago

What's happening is that for single level subkeys, levure isn't obtaining the subkey value. It works for nested subkeys 0 or >=2 levels deep. Adding >=1 fixes it.

macMikey commented 5 years ago

See PR 129

trevordevore commented 5 years ago

Got it. Thanks!