Commit 42959f8f authored by Christian Kamm's avatar Christian Kamm
Browse files

Remove the lookup into including Qml files in the root scope of a JS file.

parent 7e01c3b5
......@@ -54,6 +54,8 @@ void Link::scopeChainAt(Document::Ptr doc, Node *currentObject)
if (const ObjectValue *typeEnvironment = _context->typeEnvironment(
} else {
// the global scope of a js file does not see the instantiating component
if (currentObject != 0) {
// add scope chains for all components that source this document
foreach (Document::Ptr otherDoc, _docs) {
if (otherDoc->bind()->includedScripts().contains(doc->fileName()))
......@@ -61,6 +63,7 @@ void Link::scopeChainAt(Document::Ptr doc, Node *currentObject)
// ### TODO: Which type environment do scripts see?
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment