mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
spelling: disposer
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
1 parent
bc961c4aa8
commit
c63c52d8c8
2 files changed
+2
-2
No files matched your search
@@ -56,7 +56,7 @@ class TestCatalogCategory2 extends CatalogCategory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe("CatalogCategoryRegistry", () => {
|
describe("CatalogCategoryRegistry", () => {
|
||||||
it("should remove only the category registered when running the disopser", () => {
|
it("should remove only the category registered when running the disposer", () => {
|
||||||
const registry = new TestCatalogCategoryRegistry();
|
const registry = new TestCatalogCategoryRegistry();
|
||||||
|
|
||||||
expect(registry.items.length).toBe(0);
|
expect(registry.items.length).toBe(0);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ export abstract class IpcMain extends IpcRegistrar {
|
|||||||
* Listen for broadcasts within your extension
|
* Listen for broadcasts within your extension
|
||||||
* @param channel The channel to listen for broadcasts on
|
* @param channel The channel to listen for broadcasts on
|
||||||
* @param listener The function that will be called with the arguments of the broadcast
|
* @param listener The function that will be called with the arguments of the broadcast
|
||||||
* @returns An optional disopser, Lens will cleanup when the extension is disabled or uninstalled even if this is not called
|
* @returns An optional disposer, Lens will cleanup when the extension is disabled or uninstalled even if this is not called
|
||||||
*/
|
*/
|
||||||
listen(channel: string, listener: (event: Electron.IpcRendererEvent, ...args: any[]) => any): Disposer {
|
listen(channel: string, listener: (event: Electron.IpcRendererEvent, ...args: any[]) => any): Disposer {
|
||||||
const prefixedChannel = `extensions@${this[IpcPrefix]}:${channel}`;
|
const prefixedChannel = `extensions@${this[IpcPrefix]}:${channel}`;
|
||||||
|
|||||||
Reference in new issue
Block a user