function keyword within quotes

Servoy editor pops up and error for the following expression

var a = new Object();
a.method1 = method1;

if (typeof(a.method1) == "function") {
   ...
   ..
   .
}

I thought only the keyword function is not allowed and not the string “function”

Also the following gives error too (2nd line)

var a = new Object();

a.new = "yyy";

I thought that was fixed a long time ago…what version are you using?

i am using Servoy version 3.0b2

Never been fixed, pending a major update of the Servoy editor, as far as I know.

you can use “func”+“tion”

Paul

yeah!

I got the work around already.

Thanks for your suggestion.