関数の書き換えに失敗する問題を修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1929 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-02-27 01:16:01 +00:00
parent 7d7b94eb19
commit 6c44f84308

View File

@ -949,7 +949,7 @@ catch(e) {
overwriteProcess = function(aName) {
var overwroteFunc;
eval('overwroteFunc = '+aName);
if (overwroteFunc.toSource().indexOf('(function BrowserLoadURL') != 0) return;
if (overwroteFunc.toSource().indexOf('function BrowserLoadURL') != 0) return;
eval(aName + ' = '+
overwroteFunc.toSource().replace(
'aTriggeringEvent && aTriggeringEvent.altKey',
@ -1069,7 +1069,7 @@ catch(e) {
overwriteProcess = function(aName) {
var overwroteFunc;
eval('overwroteFunc = '+aName);
if (overwroteFunc.toSource().indexOf('(function contentAreaClick') != 0) return;
if (overwroteFunc.toSource().indexOf('function contentAreaClick') != 0) return;
eval(aName + ' = '+
overwroteFunc.toSource().replace(
/(openWebPanel\([^\(]+\("webPanels"\), wrapper.href\);event.preventDefault\(\);return false;\})/,
@ -1124,7 +1124,7 @@ catch(e) {
overwriteProcess = function(aName, aFunc) {
var overwroteFunc;
eval('overwroteFunc = '+aName);
if (overwroteFunc.toSource().indexOf('(function '+func) != 0) return;
if (overwroteFunc.toSource().indexOf('function '+func) != 0) return;
eval(aName + ' = '+
overwroteFunc.toSource().replace(
'gBrowser.loadTabs(',