Fix breakage of *Now APIs
This commit is contained in:
parent
5676165ebe
commit
a0b26441bf
@ -1569,12 +1569,12 @@ var TreeStyleTabBase = {
|
|||||||
* opened or not (by the command called after TST's API), then use this.
|
* opened or not (by the command called after TST's API), then use this.
|
||||||
* This version automatically cancels the "ready" state with delay.
|
* This version automatically cancels the "ready" state with delay.
|
||||||
*/
|
*/
|
||||||
readyToOpenChildTabNow : function TSTBase_readyToOpenChildTabNow(aFrameOrTabBrowser, aMultiple) /* PUBLIC API */
|
readyToOpenChildTabNow : function TSTBase_readyToOpenChildTabNow(...aArgs) /* PUBLIC API */
|
||||||
{
|
{
|
||||||
if (this.readyToOpenChildTab(aFrameOrTabBrowser, aMultiple, false)) {
|
if (this.readyToOpenChildTab.apply(this, aArgs)) {
|
||||||
let self = this;
|
let self = this;
|
||||||
this.Deferred.next(function() {
|
this.Deferred.next(function() {
|
||||||
self.stopToOpenChildTab(aFrameOrTabBrowser);
|
self.stopToOpenChildTab(aArgs[0]);
|
||||||
}).error(this.defaultDeferredErrorHandler);
|
}).error(this.defaultDeferredErrorHandler);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1621,12 +1621,12 @@ var TreeStyleTabBase = {
|
|||||||
* opened or not (by the command called after TST's API), then use this.
|
* opened or not (by the command called after TST's API), then use this.
|
||||||
* This version automatically cancels the "ready" state with delay.
|
* This version automatically cancels the "ready" state with delay.
|
||||||
*/
|
*/
|
||||||
readyToOpenNextSiblingTabNow : function TSTBase_readyToOpenNextSiblingTabNow(aFrameOrTabBrowser) /* PUBLIC API */
|
readyToOpenNextSiblingTabNow : function TSTBase_readyToOpenNextSiblingTabNow(...aArgs) /* PUBLIC API */
|
||||||
{
|
{
|
||||||
if (this.readyToOpenNextSiblingTab(aFrameOrTabBrowser)) {
|
if (this.readyToOpenNextSiblingTab.apply(this, aArgs)) {
|
||||||
let self = this;
|
let self = this;
|
||||||
this.Deferred.next(function() {
|
this.Deferred.next(function() {
|
||||||
self.stopToOpenChildTab(aFrameOrTabBrowser);
|
self.stopToOpenChildTab(aArgs[0]);
|
||||||
}).error(this.defaultDeferredErrorHandler);
|
}).error(this.defaultDeferredErrorHandler);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1658,13 +1658,13 @@ var TreeStyleTabBase = {
|
|||||||
* opened or not (by the command called after TST's API), then use this.
|
* opened or not (by the command called after TST's API), then use this.
|
||||||
* This version automatically cancels the "ready" state with delay.
|
* This version automatically cancels the "ready" state with delay.
|
||||||
*/
|
*/
|
||||||
readyToOpenNewTabGroupNow : function TSTBase_readyToOpenNewTabGroupNow(aFrameOrTabBrowser) /* PUBLIC API */
|
readyToOpenNewTabGroupNow : function TSTBase_readyToOpenNewTabGroupNow(...aArgs) /* PUBLIC API */
|
||||||
{
|
{
|
||||||
|
|
||||||
if (this.readyToOpenNewTabGroup(aFrameOrTabBrowser, null, null)) {
|
if (this.readyToOpenNewTabGroup.apply(this, aArgs)) {
|
||||||
let self = this;
|
let self = this;
|
||||||
this.Deferred.next(function() {
|
this.Deferred.next(function() {
|
||||||
self.stopToOpenChildTab(aFrameOrTabBrowser);
|
self.stopToOpenChildTab(aArgs[0]);
|
||||||
}).error(this.defaultDeferredErrorHandler);
|
}).error(this.defaultDeferredErrorHandler);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user