Clean up
git-svn-id: svn://10.0.0.236/trunk@47390 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
b0d76e97de
commit
8fe15fbf8e
@ -1,41 +1,21 @@
|
||||
function onLoadViewSource() {
|
||||
if ( !useOldAppCore ) {
|
||||
StartupViewSource();
|
||||
}
|
||||
}
|
||||
// Create and initialize the browser instance.
|
||||
createBrowserInstance();
|
||||
|
||||
function StartupViewSource() {
|
||||
if ( useOldAppCore ) {
|
||||
// Generate unique name (var appCoreName declared in navigator.js).
|
||||
appCoreName = "ViewSource." + ( new Date() ).getTime().toString();
|
||||
|
||||
// Create and initialize the browser app core.
|
||||
appCore = new BrowserAppCore();
|
||||
appCore.Init( appCoreName );
|
||||
if ( appCore ) {
|
||||
appCore.isViewSource = true;
|
||||
appCore.setContentWindow(window.frames[0]);
|
||||
appCore.setWebShellWindow(window);
|
||||
appCore.setToolbarWindow(window);
|
||||
|
||||
// Get url whose source to view.
|
||||
var url = document.getElementById("args").getAttribute("value");
|
||||
|
||||
// Load the source (the app core will magically know what to do).
|
||||
appCore.loadUrl(url);
|
||||
} else {
|
||||
// Create and initialize the browser instance.
|
||||
createBrowserInstance();
|
||||
|
||||
if ( appCore ) {
|
||||
appCore.isViewSource = true;
|
||||
appCore.setContentWindow(window.frames[0]);
|
||||
appCore.setWebShellWindow(window);
|
||||
appCore.setToolbarWindow(window);
|
||||
}
|
||||
|
||||
|
||||
// Get url whose source to view.
|
||||
var url = window.arguments[0];
|
||||
|
||||
// Load the source (the app core will magically know what to do).
|
||||
appCore.loadUrl( url );
|
||||
} else {
|
||||
// Give up.
|
||||
alert( "Error creating browser instance\n" );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1,41 +1,21 @@
|
||||
function onLoadViewSource() {
|
||||
if ( !useOldAppCore ) {
|
||||
StartupViewSource();
|
||||
}
|
||||
}
|
||||
// Create and initialize the browser instance.
|
||||
createBrowserInstance();
|
||||
|
||||
function StartupViewSource() {
|
||||
if ( useOldAppCore ) {
|
||||
// Generate unique name (var appCoreName declared in navigator.js).
|
||||
appCoreName = "ViewSource." + ( new Date() ).getTime().toString();
|
||||
|
||||
// Create and initialize the browser app core.
|
||||
appCore = new BrowserAppCore();
|
||||
appCore.Init( appCoreName );
|
||||
if ( appCore ) {
|
||||
appCore.isViewSource = true;
|
||||
appCore.setContentWindow(window.frames[0]);
|
||||
appCore.setWebShellWindow(window);
|
||||
appCore.setToolbarWindow(window);
|
||||
|
||||
// Get url whose source to view.
|
||||
var url = document.getElementById("args").getAttribute("value");
|
||||
|
||||
// Load the source (the app core will magically know what to do).
|
||||
appCore.loadUrl(url);
|
||||
} else {
|
||||
// Create and initialize the browser instance.
|
||||
createBrowserInstance();
|
||||
|
||||
if ( appCore ) {
|
||||
appCore.isViewSource = true;
|
||||
appCore.setContentWindow(window.frames[0]);
|
||||
appCore.setWebShellWindow(window);
|
||||
appCore.setToolbarWindow(window);
|
||||
}
|
||||
|
||||
|
||||
// Get url whose source to view.
|
||||
var url = window.arguments[0];
|
||||
|
||||
// Load the source (the app core will magically know what to do).
|
||||
appCore.loadUrl( url );
|
||||
} else {
|
||||
// Give up.
|
||||
alert( "Error creating browser instance\n" );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user