summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Mönig <jens@moenig.org>2014-06-04 12:44:33 +0200
committerJens Mönig <jens@moenig.org>2014-06-04 12:44:33 +0200
commit499980cbb4a695e6cc9e2cdd6497bfc597486de3 (patch)
tree95e601dc3b2eb441e4a73a2cbfcde5b9a9cdd3d8
parentcca2f591bd73ebef2aefff8619eae8ea29f8c89d (diff)
parent2710f5b30777d356382763d0b4d30f3472e5b951 (diff)
downloadsnap-yow-499980cbb4a695e6cc9e2cdd6497bfc597486de3.tar.gz
snap-yow-499980cbb4a695e6cc9e2cdd6497bfc597486de3.zip
Merge pull request #468 from nathan/fix-contains
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;
}