diff --git a/core/modules/tiddler.js b/core/modules/tiddler.js index 430e831fe..f77b41108 100644 --- a/core/modules/tiddler.js +++ b/core/modules/tiddler.js @@ -63,6 +63,9 @@ tiddler: the tiddler to compare excludeFields: array of field names to exclude from the comparison */ exports.isEqual = function(tiddler,excludeFields) { + if(!(tiddler instanceof $tw.Tiddler)) { + return false; + } excludeFields = excludeFields || []; var self = this, differences = []; // Fields that have differences