coronalabs / framework-composer

Corona composer.* framework
https://docs.coronalabs.com/api/library/composer/
2 stars 4 forks source link

[BUG] allow setting composer variable to nil #5

Open mdsandell opened 2 years ago

mdsandell commented 2 years ago

The composer API's setVariable method did not allow you to set a variable to nil, as I just found out while debugging my app. While I can probably work around it by setting to false instead, I have to be careful that other code in my app doesn't behave differently when given a boolean here, since I truly want to clear the variable completely in my use case. If this is considered a "feature" and you don't want to move forward with this fix, maybe we can get the docs updated with a new "gotcha?"

Signed-off-by: Mark Sandell mdsandell@gmail.com