More resilience to Tiddler.isEqual()

print-window-tiddler
Jermolene 2014-11-09 21:47:00 +00:00
rodzic cea0b74265
commit 3b08b5e9dd
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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