[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/4.0/kdelibs/khtml/ecma
From: Maks Orlovich <maksim () kde ! org>
Date: 2008-01-17 19:14:50
Message-ID: 1200597290.688204.23496.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 762729 by orlovich:
Set prototype on the XHR ctor...
M +3 -1 xmlhttprequest.cpp
--- branches/KDE/4.0/kdelibs/khtml/ecma/xmlhttprequest.cpp #762728:762729
@@ -98,9 +98,11 @@
jsObject->slotRedirection( job, url );
}
-XMLHttpRequestConstructorImp::XMLHttpRequestConstructorImp(ExecState *, DOM::DocumentImpl* d)
+XMLHttpRequestConstructorImp::XMLHttpRequestConstructorImp(ExecState *exec, DOM::DocumentImpl* d)
: JSObject(), doc(d)
{
+ JSObject* proto = XMLHttpRequestProto::self(exec);
+ putDirect(exec->propertyNames().prototype, proto, DontDelete|ReadOnly);
}
bool XMLHttpRequestConstructorImp::implementsConstruct() const
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic