mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Text-slicer: Fix issue with missing destination title
This commit is contained in:
parent
2a4a3d9fe9
commit
c5ac10024b
@ -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
|
type: application/javascript
|
||||||
module-type: startup
|
module-type: startup
|
||||||
|
|
||||||
@ -22,7 +22,7 @@ exports.synchronous = true;
|
|||||||
exports.startup = function() {
|
exports.startup = function() {
|
||||||
$tw.rootWidget.addEventListener("tm-slice-tiddler",function(event) {
|
$tw.rootWidget.addEventListener("tm-slice-tiddler",function(event) {
|
||||||
var slicer = new $tw.Slicer($tw.wiki,event.param,{
|
var slicer = new $tw.Slicer($tw.wiki,event.param,{
|
||||||
destTitle: event.paramObject.destTitle
|
destTitle: event.paramObject && event.paramObject.destTitle
|
||||||
});
|
});
|
||||||
slicer.sliceTiddler(event.param)
|
slicer.sliceTiddler(event.param)
|
||||||
slicer.outputTiddlers();
|
slicer.outputTiddlers();
|
||||||
|
Loading…
Reference in New Issue
Block a user