Privatize the "force" option to Meteor.reconnect (added on the auth branch and

mostly used for manual testing).
This commit is contained in:
David Glasser
2012-10-10 16:57:39 -07:00
parent 59b0b1fbc2
commit 3cf7dce666
2 changed files with 2 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ _.extend(Meteor._Stream.prototype, {
var self = this;
if (self.current_status.connected) {
if (options && options.force) {
if (options && options._force) {
// force reconnect.
self._disconnected();
} // else, noop.

View File

@@ -20,7 +20,7 @@ testAsyncMulti("stream - reconnect", [
status = Meteor.status();
test.equal(status.status, "connected");
Meteor.reconnect({force: true});
Meteor.reconnect({_force: true});
status = Meteor.status();
test.equal(status.status, "waiting");
}));