diff options
-rw-r--r-- | it_html.class | 4 | ||||
-rw-r--r-- | itjs.class | 1 | ||||
-rw-r--r-- | itjs/state.html | 31 |
3 files changed, 0 insertions, 36 deletions
diff --git a/it_html.class b/it_html.class index bca1689..390e8ae 100644 --- a/it_html.class +++ b/it_html.class @@ -86,7 +86,6 @@ function __construct($p = array()) 'staticallycallable' => 'Q,U,select', # Those methods are statically callable (have same arguments as global stubs) but are a bit slower 'tags' => "a,b,br,button,div,em,fieldset,form,h1,h2,h3,h4,h5,h6,hr,img,input,label,legend,li,meta,noscript,p,pre,span,style,table,tbody,td,textarea,tfoot,th,thead,tr,ul,ol,article,section", 'title' => '', # HTML title (default: no title added) - 'use_it_state' => false, # If true, generate code needed by state.js (aka 'history iframe') 'srclines' => $GLOBALS['debug_srclines'], # append stackdump to each tag 'error_on_redefine' => false, # Generate it::error when trying to redefine function for a tag ); @@ -252,9 +251,6 @@ function head($args = array()) */ function body($args) { - if ($this->p['use_it_state']) - array_unshift($args, tag('iframe', array('id' => "it_state", 'src' => "/itjs/state.html", 'width' => 1, 'height' => 1, 'frameborder' => 0))); - if (EDC('what')) { $debugvars = array_merge($GLOBALS['ULTRADEBUGVARS'], array('srclines' => 1, 'texts' => 1)); @@ -127,7 +127,6 @@ static function filenames($filelist) $special = array( "itools" => "$itjs/it.js,$itjs/http.js,$itjs/loader.js,$itjs/state.js,$itjs/timer.js", "boot.js" => "$itjs/boot.js", - "state.html" => "$itjs/state.html", "error.gif" => "$itjs/error.gif", "search.css" => "$libsearch/doc/search.css", "prettyprint.css" => "$libsearch/doc/prettyprint.css", diff --git a/itjs/state.html b/itjs/state.html deleted file mode 100644 index 36f36c0..0000000 --- a/itjs/state.html +++ /dev/null @@ -1,31 +0,0 @@ -<?php header("Cache-Control: max-age=3600"); -return <<<EOF -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> -<html> -<head> -<title></title> -<script type="text/javascript"> -var state_load_attempts = 0; -function state_onload() -{ - if (state_load_attempts < 30) - { - state_load_attempts++; - if (parent.it_state && parent.it_state.ready) - parent.setTimeout(parent.it_state_restore_history, 1); - else - window.setTimeout(state_onload, 90); - } - window[(document.all?'onbeforeunload':'onunload')] = state_onbeforeunload; -} -function state_onbeforeunload() -{ - if (parent.it_state && !parent.it_state.it_state_saved) - parent.it_state.store_state(); -} -</script> -</head> -<body onload="state_onload()"><form action="/itjs/state.html" method="get"><input type="hidden" id="state" name="s" value=""></form></body> -</html> -EOF -?> |