Text-slicer: Fix issue with missing destination title

print-window-tiddler
Jermolene 2016-05-11 11:13:15 -06:00
rodzic 2a4a3d9fe9
commit c5ac10024b
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

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