mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
more from glasser review
This commit is contained in:
@@ -373,6 +373,7 @@ LocalCollection.Cursor.prototype._depend = function (changers) {
|
||||
options[fnName] = notifyChange;
|
||||
});
|
||||
|
||||
// observeChanges will stop() when this computation is invalidated
|
||||
self.observeChanges(options);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1774,7 +1774,9 @@ Tinytest.add("minimongo - reactive stop", function (test) {
|
||||
// observe callbacks don't wait for flush, they are inline.
|
||||
coll.insert({_id: 'F'});
|
||||
test.equal(x, "FEDCBA");
|
||||
test.equal(y, "FEDCBA");
|
||||
Deps.flush();
|
||||
coll.insert({_id: 'G'});
|
||||
test.equal(x, "FEDCBA");
|
||||
test.equal(y, "FEDCBA");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user