Issue with native return values
Monkey Targets Forums/HTML5/Issue with native return values
| ||
Probably doing something quite wrong here, but not sure what; I have a monkey file with ; Extern Function IsBar?() Function FooBar() Function NoFooBar() and a JS file with function var bar = false; function IsBar() { return bar; } function FooBar() { bar = true; } function NoFooBar() { bar = false; } now calling IsBar() returns false in monkey and that's correct and running; FooBar() IsBar() returns true in monkey which is also correct, however; FooBar() IsBar() NoFooBar() IsBar() returns true and true which is not correct. Why? I cannot get it to false again while bar == false indeed according to debugging. |