More appCore killing, bug=46200, r=ben, a=alecf

This commit is contained in:
disttsc%bart.nl 2006-07-27 14:52:55 +00:00
Родитель bf59ed9c3c
Коммит ba06cc4da6
1 изменённых файлов: 2 добавлений и 16 удалений

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

@ -61,9 +61,7 @@ function debug(msg)
// get handle to the BrowserAppCore in the content area.
var appCore = window._content.appCore;
var loadingArc = null;
var loadingArc = null;
var loadingLevel = 0;
var RDF_observer = new Object;
@ -239,24 +237,12 @@ function OnClick(event, node)
var selectedItem = tree.selectedItems[0];
var theID = selectedItem.getAttribute("id");
//if( selectedItem.getAttribute( "type" ) == "FILE" )
if(appCore)
{
// support session history (if appCore is available)
appCore.loadUrl(theID);
}
else
{
// fallback case (if appCore isn't available)
window._content.location.href = theID;
}
window._content.location.href = theID;
// set window title
var theWindow = window._content.parentWindow;
if (theWindow)
{
theWindow.title = theID;
}
}
}