Inboxsdk fix destroy event (#27237)

* inboxsdk - fix destroyed event => destroy

* inboxsdk - fix destroyed event => destroy
This commit is contained in:
Amiram Korach
2018-07-15 12:22:46 -07:00
committed by Ryan Cavanaugh
parent ee49a4763b
commit dcd53299bf
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -358,7 +358,7 @@ InboxSDK.load(1, '1234').then((sdk: InboxSDK.InboxSDKInstance) => {
const contacts: InboxSDK.Common.Contact[] = threadRowView.getContacts();
threadRowView.on('destroyed', () => console.log());
threadRowView.on('destroy', () => console.log());
const destroyed: boolean = threadRowView.destroyed;
});
@@ -704,7 +704,7 @@ InboxSDK.load(1, '1234').then((sdk: InboxSDK.InboxSDKInstance) => {
});
modalView.close();
modalView.on('destroyed', () => {
modalView.on('destroy', () => {
});
const destroyed: boolean = modalView.destroyed;
@@ -728,7 +728,7 @@ InboxSDK.load(1, '1234').then((sdk: InboxSDK.InboxSDKInstance) => {
const minimized: boolean = moleView.getMinimized();
moleView.setMinimized(true);
moleView.setTitle('title');
moleView.on('destroyed', () => {
moleView.on('destroy', () => {
});
moleView.on('minimize', () => {
});
@@ -745,7 +745,7 @@ InboxSDK.load(1, '1234').then((sdk: InboxSDK.InboxSDKInstance) => {
drawerView.close();
drawerView.disassociateComposeView();
const destroyed1: boolean = drawerView.destroyed;
drawerView.on('destroyed', () => {
drawerView.on('destroy', () => {
});
drawerView.on('slideAnimationDone', () => {
});
+4 -4
View File
@@ -306,7 +306,7 @@ declare namespace InboxSDK {
getContacts(): Common.Contact[];
on(name: 'destroyed', cb: () => void): void;
on(name: 'destroy', cb: () => void): void;
destroyed: boolean;
}
@@ -909,7 +909,7 @@ declare namespace InboxSDK {
interface ModalView {
close(): void;
on(name: 'destroyed', cb: () => void): void;
on(name: 'destroy', cb: () => void): void;
destroyed: boolean;
}
@@ -923,7 +923,7 @@ declare namespace InboxSDK {
getMinimized(): boolean;
on(name: 'destroyed' | 'minimize' | 'restore', cb: () => void): void;
on(name: 'destroy' | 'minimize' | 'restore', cb: () => void): void;
destroyed: boolean;
}
@@ -935,7 +935,7 @@ declare namespace InboxSDK {
disassociateComposeView(): void;
on(name: 'destroyed' | 'slideAnimationDone' | 'closing', cb: () => void): void;
on(name: 'destroy' | 'slideAnimationDone' | 'closing', cb: () => void): void;
destroyed: boolean;
}