関数の書き換えに失敗する問題を修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1929 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
7d7b94eb19
commit
6c44f84308
@ -949,7 +949,7 @@ catch(e) {
|
|||||||
overwriteProcess = function(aName) {
|
overwriteProcess = function(aName) {
|
||||||
var overwroteFunc;
|
var overwroteFunc;
|
||||||
eval('overwroteFunc = '+aName);
|
eval('overwroteFunc = '+aName);
|
||||||
if (overwroteFunc.toSource().indexOf('(function BrowserLoadURL') != 0) return;
|
if (overwroteFunc.toSource().indexOf('function BrowserLoadURL') != 0) return;
|
||||||
eval(aName + ' = '+
|
eval(aName + ' = '+
|
||||||
overwroteFunc.toSource().replace(
|
overwroteFunc.toSource().replace(
|
||||||
'aTriggeringEvent && aTriggeringEvent.altKey',
|
'aTriggeringEvent && aTriggeringEvent.altKey',
|
||||||
@ -1069,7 +1069,7 @@ catch(e) {
|
|||||||
overwriteProcess = function(aName) {
|
overwriteProcess = function(aName) {
|
||||||
var overwroteFunc;
|
var overwroteFunc;
|
||||||
eval('overwroteFunc = '+aName);
|
eval('overwroteFunc = '+aName);
|
||||||
if (overwroteFunc.toSource().indexOf('(function contentAreaClick') != 0) return;
|
if (overwroteFunc.toSource().indexOf('function contentAreaClick') != 0) return;
|
||||||
eval(aName + ' = '+
|
eval(aName + ' = '+
|
||||||
overwroteFunc.toSource().replace(
|
overwroteFunc.toSource().replace(
|
||||||
/(openWebPanel\([^\(]+\("webPanels"\), wrapper.href\);event.preventDefault\(\);return false;\})/,
|
/(openWebPanel\([^\(]+\("webPanels"\), wrapper.href\);event.preventDefault\(\);return false;\})/,
|
||||||
@ -1124,7 +1124,7 @@ catch(e) {
|
|||||||
overwriteProcess = function(aName, aFunc) {
|
overwriteProcess = function(aName, aFunc) {
|
||||||
var overwroteFunc;
|
var overwroteFunc;
|
||||||
eval('overwroteFunc = '+aName);
|
eval('overwroteFunc = '+aName);
|
||||||
if (overwroteFunc.toSource().indexOf('(function '+func) != 0) return;
|
if (overwroteFunc.toSource().indexOf('function '+func) != 0) return;
|
||||||
eval(aName + ' = '+
|
eval(aName + ' = '+
|
||||||
overwroteFunc.toSource().replace(
|
overwroteFunc.toSource().replace(
|
||||||
'gBrowser.loadTabs(',
|
'gBrowser.loadTabs(',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user