Hello guys,
I'm trying to overwrite a single function of navigator.js, so I created a
tiddler named navigator-delete.js with the following code:
/*\
title: $:/plugins/kebi/tiddlyresearch/navigator-delete.js
type: application/javascript
module-type: widget
\*/
var NavigatorWidget = require("$:/core/modules/widgets/navigator.js").widget
;
// Delete a tiddler
NavigatorWidget.prototype.handleDeleteTiddlerEvent = function(event) {
// New code that replaces the original
};
Is this the correct way of overwriting navigator.js?
Thank you in advance.
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/55097cf5-9ab9-4a71-b65b-4ab4978232c5o%40googlegroups.com.