Fix prototype chain in XHR
authorSimon Hausmann <simon.hausmann@digia.com>
Wed, 12 Jun 2013 08:41:07 +0000 (10:41 +0200)
committerLars Knoll <lars.knoll@digia.com>
Wed, 12 Jun 2013 08:50:30 +0000 (10:50 +0200)
Fix variable typo that caused Node::prototype to always return a null value.

Change-Id: I453685952a870c7b7ba4607a151d5b7834f553b9
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/qml/qml/qqmlxmlhttprequest.cpp

index 597c12d..20fda84 100644 (file)
@@ -514,7 +514,7 @@ v8::Handle<v8::Object> 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();