1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00

More resilience to Tiddler.isEqual()

This commit is contained in:
Jermolene 2014-11-09 21:47:00 +00:00
parent cea0b74265
commit 3b08b5e9dd

View File

@ -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