mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
@@ -116,7 +116,8 @@ ObserveSequence = {
|
||||
|
||||
var idString = idStringify(id);
|
||||
if (idsUsed[idString]) {
|
||||
warn("duplicate id " + id + " in", seq);
|
||||
if (typeof item === 'object' && '_id' in item)
|
||||
warn("duplicate id " + id + " in", seq);
|
||||
id = Random.id();
|
||||
} else {
|
||||
idsUsed[idString] = true;
|
||||
|
||||
@@ -483,7 +483,7 @@ Tinytest.add('observe sequence - number arrays', function (test) {
|
||||
{removedAt: [{NOT: 1}, 1, 1]},
|
||||
{addedAt: [3, 3, 1, 2]},
|
||||
{addedAt: [{NOT: 3}, 3, 3, null]}
|
||||
], /*numExpectedWarnings = */2);
|
||||
]);
|
||||
});
|
||||
|
||||
Tinytest.add('observe sequence - cursor to other cursor, same collection', function (test) {
|
||||
|
||||
Reference in New Issue
Block a user