diff options
author | Lars Knoll <[email protected]> | 2014-01-08 12:46:53 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-01-20 21:13:43 +0100 |
commit | 50d6e51c73a37858699b90d64657cec5e0b53610 (patch) | |
tree | ff56a6973b360186f81f2c22eda7c1bc750ebab6 /src/qml/jsruntime/qv4runtime.cpp | |
parent | f5cde6dbd8ecea7c8c4b9e48f0e7d217fb24149b (diff) |
clean up Object::has(Own)Property
hasProperty is now implemented by calling hasOwnProperty
on the proto chain. In addition, it should be slightly
faster and doesn't use API that returns a Property pointer
anymore.
Change-Id: I6312d83ccfed3f0a1a8ec4c72c436a426d6eab44
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4runtime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp index 9275704984..4c7ec6602d 100644 --- a/src/qml/jsruntime/qv4runtime.cpp +++ b/src/qml/jsruntime/qv4runtime.cpp @@ -338,7 +338,7 @@ QV4::ReturnedValue __qmljs_in(ExecutionContext *ctx, const ValueRef left, const ScopedString s(scope, left->toString(ctx)); if (scope.hasException()) return Encode::undefined(); - bool r = right->objectValue()->__hasProperty__(s); + bool r = right->objectValue()->hasProperty(s); return Encode(r); } |