Use __treestyletab__ prefix for internal cached versions

This commit is contained in:
Piro / YUKI Hiroshi 2016-09-05 22:32:59 +09:00
parent 81d937fc91
commit d1e63100d9

View File

@ -491,8 +491,8 @@ var TreeStyleTabWindowHelper = {
return result;
};
if (!b._treestyletab__beginRemoveTab) {
b._treestyletab__beginRemoveTab = b._beginRemoveTab;
if (!b.__treestyletab__beginRemoveTab) {
b.__treestyletab__beginRemoveTab = b._beginRemoveTab;
b._beginRemoveTab = function(aTab, ...aArgs) {
var originalRemovingTabs = this._removingTabs;
var self = this;
@ -510,7 +510,7 @@ var TreeStyleTabWindowHelper = {
}
});
}
var result = this._treestyletab__beginRemoveTab(aTab, ...aArgs);
var result = this.__treestyletab__beginRemoveTab(aTab, ...aArgs);
this._removingTabs = originalRemovingTabs;
return result;
};