From 8a6fadb39aec58f373ef24f39d39f7fbc050277d Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 18 Oct 2013 15:42:10 +0200 Subject: Revert commit d818575966e2e2000fe2b7ee390c620f595d9825 This reverts the commit that deprecated the with statement and added a note to the docs that binding expressions will be compiled in strict mode in Qt 5.2. It turns out that we had to keep the with statement and enabling strict mode breaks just too much unfortunately. Change-Id: Id38c27f684fbfcb6b6b848be8f691658089d1adb Reviewed-by: Lars Knoll --- src/qml/doc/src/javascript/hostenvironment.qdoc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/qml/doc') diff --git a/src/qml/doc/src/javascript/hostenvironment.qdoc b/src/qml/doc/src/javascript/hostenvironment.qdoc index 3bd64ac115..a63ef617c0 100644 --- a/src/qml/doc/src/javascript/hostenvironment.qdoc +++ b/src/qml/doc/src/javascript/hostenvironment.qdoc @@ -166,15 +166,6 @@ Item { } \endqml -\li The \c with statement is deprecated. Using the \c with statement will issue a warning -at loading time and we plan on removing support for it in Qt 5.2. It is generally considered -a language feature that is not recommended for use due reducing the readability of code and disabling -many optimizations in the engine. It is also forbidden in ECMAScript 5 strict mode. - -\li JavaScript binding expressions are executed in non-strict mode. However we -plan on changing the default for bindings in Qt 5.2 to execute always in -ECMAScript 5 strict mode. - \endlist -- cgit v1.2.3