From a22ae77751fec0b4800c5c4dcaa292a1b58b9702 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Wed, 12 Jun 2013 10:41:07 +0200 Subject: [PATCH] Fix prototype chain in XHR Fix variable typo that caused Node::prototype to always return a null value. Change-Id: I453685952a870c7b7ba4607a151d5b7834f553b9 Reviewed-by: Lars Knoll --- src/qml/qml/qqmlxmlhttprequest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp index 597c12d..20fda84 100644 --- a/src/qml/qml/qqmlxmlhttprequest.cpp +++ b/src/qml/qml/qqmlxmlhttprequest.cpp @@ -514,7 +514,7 @@ v8::Handle Node::prototype(QV8Engine *engine) 0, v8::External::New(engine)); p->SetAccessor(v8::String::New("attributes"), attributes, 0, v8::External::New(engine)); - d->nodeListPrototype = p->v4Value(); + d->nodePrototype = p->v4Value(); engine->freezeObject(d->nodePrototype); } return d->nodePrototype.value(); -- 2.7.4