From 23a71b433e935cf183b0b51b94a4eecfb03ca767 Mon Sep 17 00:00:00 2001 From: Devin Weaver Date: Sun, 27 Apr 2014 15:33:14 -0400 Subject: [PATCH] Rename isEqual to isArrayEqual --- boot/boot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/boot.js b/boot/boot.js index 0e1168c2e..25101f55e 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -88,7 +88,7 @@ $tw.utils.each = function(object,callback) { /* Check if an array is equal by value and by reference. */ -$tw.utils.isEqual = function(array1,array2) { +$tw.utils.isArrayEqual = function(array1,array2) { if(array1 === array2) { return true; } array1 = array1 || []; array2 = array2 || []; if(array1.length !== array2.length) { return false; } @@ -802,7 +802,7 @@ $tw.Tiddler.prototype.isModified = function() { var ignoredFields = ["created", "modified", "title", "draft.title", "draft.of", "tags"], tiddler = this, origTiddler = $tw.wiki.getTiddler(this.fields["draft.of"]); - if(!$tw.utils.isEqual(tiddler.fields.tags,origTiddler.fields.tags)) { + if(!$tw.utils.isArrayEqual(tiddler.fields.tags,origTiddler.fields.tags)) { return true; } return !Object.keys(tiddler.fields).every(function(field) {