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
fix-syncer
jed 2019-07-24 19:12:09 +02:00 zatwierdzone przez Jeremy Ruston
rodzic cbd07465f3
commit e86d4d29d5
1 zmienionych plików z 0 dodań i 1 usunięć

Wyświetl plik

@ -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;