Skip to content
Browse files

Fix for issue #85:Creating a tiddler titled 'undefined' breaks Tiddly…

…Wiki.
  • Loading branch information...
1 parent 5d3c8a4 commit f67f88c1ecff7131fa6701f234b855cdb716c931 @martinbudden martinbudden committed
Showing with 2 additions and 2 deletions.
  1. +0 −2 js/LoaderSaver.js
  2. +2 −0 js/Story.js
View
2 js/LoaderSaver.js
@@ -17,8 +17,6 @@ LoaderBase.prototype.loadTiddler = function(store,node,tiddlers)
var title = this.getTitle(store,node);
if(safeMode && store.isShadowTiddler(title))
return;
- if (title=="undefined")
- title = "Undefined";
if(title) {
var tiddler = store.createTiddler(title);
this.internalizeTiddler(store,tiddler,title,node);
View
2 js/Story.js
@@ -652,6 +652,8 @@ Story.prototype.switchTheme = function(theme)
return;
var isAvailable = function(title) {
+ if (!title)
+ return false;
var s = title ? title.indexOf(config.textPrimitives.sectionSeparator) : -1;
if(s!=-1)
title = title.substr(0,s);

0 comments on commit f67f88c

Please sign in to comment.
Something went wrong with that request. Please try again.