зеркало из https://github.com/mozilla/gecko-dev.git
cvsquery now helps 3.0 JS avoid 'event has no properties' errors.
This commit is contained in:
Родитель
fa72057162
Коммит
8f3247f789
|
@ -354,6 +354,7 @@ sub print_top {
|
|||
<HEAD>
|
||||
<TITLE>CVS Blame $title_text</TITLE>
|
||||
<SCRIPT>
|
||||
var event = 0; // Nav3.0 compatibility
|
||||
document.loaded = false;
|
||||
|
||||
function revToName (rev) {
|
||||
|
@ -416,8 +417,6 @@ function dif(prev_rev, rev) {
|
|||
}
|
||||
file_tail = "$file_tail";
|
||||
|
||||
/* Make JavaScript happy in akbar */
|
||||
event = 0;
|
||||
initialLayer = "<TABLE BORDER=1 CELLSPACING=1 CELLPADDING=1><TR><TD><B>Page loading...please wait.</B></TD></TR></TABLE>";
|
||||
|
||||
</SCRIPT>
|
||||
|
|
|
@ -337,7 +337,7 @@ sub print_top {
|
|||
<TITLE>CVS Log $title_text</TITLE>
|
||||
<SCRIPT>
|
||||
|
||||
var event = new Object;
|
||||
var event = 0; // Nav3.0 compatibility
|
||||
|
||||
function who_menu(n,extra,d) {
|
||||
if( parseInt(navigator.appVersion) < 4 ){
|
||||
|
|
|
@ -521,6 +521,8 @@ sub setup_script {
|
|||
|
||||
$script_str =<<'ENDJS';
|
||||
<script>
|
||||
var event = 0; // Nav3.0 compatibility
|
||||
|
||||
function js_who_menu(n,extra,d) {
|
||||
if( parseInt(navigator.appVersion) < 4 ){
|
||||
return true;
|
||||
|
|
Загрузка…
Ссылка в новой задаче