Expression and the keywords
Hi,
the expression widget has a big problem with everything that as the word "alert" in it. I will use an expression for change the color of a panel dependent on an alert. I use the hasAlert-Service to get the alert state for a property. I bind this state to the expression parameter "hasAlert". If I write the expression
Output = hasAlert? "AlertRed" : "OkGreen";
I get the error message "You cannot use the alert function".
In the ide.js of the expression widget I saw this:
if (expression.indexOf('alert') >= 0) {
return TW.IDE.I18NController.translate('tw.expression-ide.warnings.cannot-use-alert');
}
I think there a better ways to prevent of using the javascript alert.

