From 63fa0c4fa4747531c6d91e9cae76bc63f9579e03 Mon Sep 17 00:00:00 2001 From: Adam Sherwood <43248857+theSherwood@users.noreply.github.com> Date: Tue, 22 Jun 2021 12:51:35 -0600 Subject: [PATCH] Hook for closing tiddlers (#3797) --- core/modules/widgets/navigator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 6991d26e2..e67b2fa15 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -160,6 +160,7 @@ NavigatorWidget.prototype.handleNavigateEvent = function(event) { // Close a specified tiddler NavigatorWidget.prototype.handleCloseTiddlerEvent = function(event) { + event = $tw.hooks.invokeHook("th-closing-tiddler",event); var title = event.param || event.tiddlerTitle, storyList = this.getStoryList(); // Look for tiddlers with this title to close