method only works with debugger on

I have this method attached to the onRecordSave event of a form:

if (balance < 0)
{
	elements.lbl_balance.fgcolor = '#9B0F37';
}
else
{
	elements.lbl_balance.fgcolor = '#1E506E';
}

It doesn’t work in servoy developer unless the debugger is on. Fortunately, it does work in servoy client so more of a cosmetic issue/annoyance.

Build 318 on Mac.

Update on this: clearing the java webstart cache makes it work…better…sort of. It now actually works in developer without the debugger on. However, you have to click twice on the form to trigger the method. If you have the debugger on, only one click on the form to trigger the method.

With servoy client on the mac it takes two clicks on the form to trigger the method.

With servoy client on a PC, it works fine – only one click on the form to trigger the method.