summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Dinsmore <nfdins@gmail.com>2014-06-02 15:53:12 -0400
committerNathan Dinsmore <nfdins@gmail.com>2014-06-02 15:56:52 -0400
commit2710f5b30777d356382763d0b4d30f3472e5b951 (patch)
treedf1a2015836a7ba71c05743d5d087fd9e3cb605f
parent6a4b4afbe98fa99623a81a89e2f6505ff5704d38 (diff)
downloadsnap-yow-2710f5b30777d356382763d0b4d30f3472e5b951.tar.gz
snap-yow-2710f5b30777d356382763d0b4d30f3472e5b951.zip
Fixed the equals block when one list is linked and the other is not
-rw-r--r--lists.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lists.js b/lists.js
index 3166bf1..13ec880 100644
--- a/lists.js
+++ b/lists.js
@@ -305,7 +305,7 @@ List.prototype.equalTo = function (other) {
if (this.length() !== other.length()) {
return false;
}
- for (i = 0; i < this.length(); i += 1) {
+ for (i = 1; i <= this.length(); i += 1) {
if (!snapEquals(this.at(i), other.at(i))) {
return false;
}