forked from qt-creator/qt-creator
QmlJS: Make 'follow symbol' work on JS functions.
Task-number: QTCREATORBUG-1757
This commit is contained in:
@@ -282,7 +282,7 @@ bool Bind::visit(FunctionDeclaration *ast)
|
||||
//if (_currentObjectValue->property(ast->name->asString(), 0))
|
||||
// return false;
|
||||
|
||||
ASTFunctionValue *function = new ASTFunctionValue(ast, &_engine);
|
||||
ASTFunctionValue *function = new ASTFunctionValue(ast, _doc, &_engine);
|
||||
_currentObjectValue->setProperty(ast->name->asString(), function);
|
||||
|
||||
// build function scope
|
||||
|
Reference in New Issue
Block a user