diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-05-03 15:33:02 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-05-03 13:45:22 +0000 |
commit | c69f3d768697eed57c40317bad8a3e8ce3a1a32a (patch) | |
tree | e737e5aaee245ba48b50d7acf87ad987d84b67ae | |
parent | fb909be6c098895978b8468bbec10ed16eda07cc (diff) |
Fix tst_scion failures
After commit 8780764b274217b256aadd00114a76bdffbdb1ef in qtdeclarative,
calling evaluate("function() { ... }") produces a warning and it will
throw a syntax error in the future.
Change-Id: Iedf1a634abd8284b9ced932a3855924bed574987
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
-rw-r--r-- | src/scxml/qscxmlecmascriptdatamodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scxml/qscxmlecmascriptdatamodel.cpp b/src/scxml/qscxmlecmascriptdatamodel.cpp index 1391068..14a8b1a 100644 --- a/src/scxml/qscxmlecmascriptdatamodel.cpp +++ b/src/scxml/qscxmlecmascriptdatamodel.cpp @@ -144,7 +144,7 @@ public: dataModel.setProperty(QStringLiteral("_x"), platformVars->jsValue()); dataModel.setProperty(QStringLiteral("In"), engine->evaluate( - QStringLiteral("function(id){return _x.inState(id);}"))); + QStringLiteral("(function(id){return _x.inState(id);})"))); } void assignEvent(const QScxmlEvent &event) |