This commit is contained in:
hyatt%netscape.com 2000-07-17 23:55:25 +00:00
Родитель 998e626e93
Коммит 7fb4a72eab
2 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -588,6 +588,9 @@ nsXBLEventHandler::ExecuteHandler(const nsString& aEventName, nsIDOMEvent* aEven
// Compile the handler and bind it to the element.
nsCOMPtr<nsIDocument> boundDocument;
mBoundElement->GetDocument(*getter_AddRefs(boundDocument));
if (!boundDocument)
return NS_OK;
nsCOMPtr<nsIScriptGlobalObject> boundGlobal;
boundDocument->GetScriptGlobalObject(getter_AddRefs(boundGlobal));

Просмотреть файл

@ -588,6 +588,9 @@ nsXBLEventHandler::ExecuteHandler(const nsString& aEventName, nsIDOMEvent* aEven
// Compile the handler and bind it to the element.
nsCOMPtr<nsIDocument> boundDocument;
mBoundElement->GetDocument(*getter_AddRefs(boundDocument));
if (!boundDocument)
return NS_OK;
nsCOMPtr<nsIScriptGlobalObject> boundGlobal;
boundDocument->GetScriptGlobalObject(getter_AddRefs(boundGlobal));