1 decade ago by matthew
I have an entity with a default setting (settings.gravitate) as true. Some times I want this as false, so I change it in Weltmeister.
In the entity's class, it shows a false (using Chrome developer tools), however when it is passed to the parent class it is now a string "false". I have worked around it like this: var myval = (!settings.gravitate || settings.gravitate != "false");
In the entity's class, it shows a false (using Chrome developer tools), however when it is passed to the parent class it is now a string "false". I have worked around it like this: var myval = (!settings.gravitate || settings.gravitate != "false");