1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Text-slicer: Fix issue with missing destination title

This commit is contained in:
Jermolene 2016-05-11 11:13:15 -06:00
parent 2a4a3d9fe9
commit c5ac10024b

View File

@ -1,5 +1,5 @@
/*\
title: $:/plugins/tiddlywiki/text-slicer/modules/startup/slicer.js
title: $:/plugins/tiddlywiki/text-slicer/modules/startup/slicer-message.js
type: application/javascript
module-type: startup
@ -22,7 +22,7 @@ exports.synchronous = true;
exports.startup = function() {
$tw.rootWidget.addEventListener("tm-slice-tiddler",function(event) {
var slicer = new $tw.Slicer($tw.wiki,event.param,{
destTitle: event.paramObject.destTitle
destTitle: event.paramObject && event.paramObject.destTitle
});
slicer.sliceTiddler(event.param)
slicer.outputTiddlers();