From e86d4d29d58d1ce55218e220c19dea6a7184ad31 Mon Sep 17 00:00:00 2001 From: jed Date: Wed, 24 Jul 2019 19:12:09 +0200 Subject: [PATCH] Fix th-renaming-tiddler (see #4023) (#4037) * Remove the th-renaming-tiddler hook from navigatior.js The hook is invoked in the renameTiddler function which would cause the same hook to be called twice, and the version in the navigator widget didn't have the correct inputs and return value according to the documentation. * Make it so that the th-renaming-tiddler hook isn't called twice by removing it from the navigator.js file --- core/modules/widgets/navigator.js | 1 - 1 file changed, 1 deletion(-) diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index 33745b898..9494346fb 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -598,7 +598,6 @@ NavigatorWidget.prototype.handleUnfoldAllTiddlersEvent = function(event) { }; NavigatorWidget.prototype.handleRenameTiddlerEvent = function(event) { - event = $tw.hooks.invokeHook("th-renaming-tiddler", event); var paramObject = event.paramObject || {}, from = paramObject.from || event.tiddlerTitle, to = paramObject.to;