aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2014-03-25 09:54:20 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-25 10:01:45 +0100
commit30f0b9a7fec30d81b58cf02d21bcd82d152ff0c8 (patch)
tree6751850644f59c9c843d7089dbf06760448cae07 /src/qml/jsruntime
parent7526cb1c9507b4718ca63aa0d708b1421cfaa051 (diff)
Don't create prototype objects for bindings
They are neither used not accessible from QML. Change-Id: I14fa6059b8e64cb2c3b9d025061548009a473f96 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r--src/qml/jsruntime/qv4script.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4script.cpp b/src/qml/jsruntime/qv4script.cpp
index fc02e04e79..15298017c7 100644
--- a/src/qml/jsruntime/qv4script.cpp
+++ b/src/qml/jsruntime/qv4script.cpp
@@ -61,7 +61,7 @@
using namespace QV4;
QmlBindingWrapper::QmlBindingWrapper(ExecutionContext *scope, Function *f, ObjectRef qml)
- : FunctionObject(scope, scope->engine->id_eval)
+ : FunctionObject(scope, scope->engine->id_eval, /*createProto = */ false)
, qml(qml)
, qmlContext(0)
{
@@ -82,7 +82,7 @@ QmlBindingWrapper::QmlBindingWrapper(ExecutionContext *scope, Function *f, Objec
}
QmlBindingWrapper::QmlBindingWrapper(ExecutionContext *scope, ObjectRef qml)
- : FunctionObject(scope, scope->engine->id_eval)
+ : FunctionObject(scope, scope->engine->id_eval, /*createProto = */ false)
, qml(qml)
, qmlContext(0)
{