took out initialization check in InitLiveConnectClasses

This commit is contained in:
beard%netscape.com 1999-03-12 04:48:28 +00:00
Родитель 4fc2199aea
Коммит 9316dfbdbf
1 изменённых файлов: 11 добавлений и 13 удалений

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

@ -180,23 +180,21 @@ nsJSContext::InitializeExternalClasses()
nsresult
nsJSContext::InitializeLiveConnectClasses()
{
nsresult result = NS_OK;
nsresult result = NS_OK;
#if defined(OJI) && defined(XP_MAC)
if (!mIsInitialized) {
nsILiveConnectManager* manager = NULL;
result = nsServiceManager::GetService(nsIJVMManager::GetCID(),
nsILiveConnectManager::GetIID(),
(nsISupports **)&manager);
if (result == NS_OK) {
result = manager->InitLiveConnectClasses(mContext, JS_GetGlobalObject(mContext));
nsServiceManager::ReleaseService(nsIJVMManager::GetCID(), manager);
}
}
nsILiveConnectManager* manager = NULL;
result = nsServiceManager::GetService(nsIJVMManager::GetCID(),
nsILiveConnectManager::GetIID(),
(nsISupports **)&manager);
if (result == NS_OK) {
result = manager->InitLiveConnectClasses(mContext, JS_GetGlobalObject(mContext));
nsServiceManager::ReleaseService(nsIJVMManager::GetCID(), manager);
}
#endif
// return all is well until things are stable.
return NS_OK;
// return all is well until things are stable.
return NS_OK;
}
NS_IMETHODIMP