forked from qt-creator/qt-creator
QmlJS: Refactor ObjectValue members.
* property -> lookupMember * setProperty -> setMember * removeProperty -> removeMember Change-Id: I638479ee2b90b684283e714630bdcab237f6b3f2 Done-with: Fawzi Mohamed Reviewed-on: http://codereview.qt.nokia.com/77 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@nokia.com>
This commit is contained in:
committed by
Fawzi Mohamed
parent
4bd6bb4d55
commit
d67b7d17dc
@@ -238,10 +238,10 @@ private:
|
||||
if (!chain || !chain->document)
|
||||
return false;
|
||||
|
||||
if (chain->document->bind()->idEnvironment()->property(_name, _context))
|
||||
if (chain->document->bind()->idEnvironment()->lookupMember(_name, _context))
|
||||
return chain->document->bind()->idEnvironment() == _scope;
|
||||
const ObjectValue *root = chain->document->bind()->rootObjectValue();
|
||||
if (root->property(_name, _context)) {
|
||||
if (root->lookupMember(_name, _context)) {
|
||||
return check(root);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user