Revert "Glasser code review comments"

This reverts commit a4a92b3f8f.

Going to squash and re-commit
This commit is contained in:
Avital Oliver
2015-08-26 12:35:19 -07:00
parent a4a92b3f8f
commit a80185846a
2 changed files with 1 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ if (Meteor.isClient) {
LocalCollection.find().observe({
added: function () {
Meteor.call("isRunningOnServer", function (err, res) {
test.isFalse(err);
test.equal(err, undefined);
test.equal(res, true);
done();
});

View File

@@ -372,10 +372,6 @@ _.extend(LocalCollection.Cursor.prototype, {
// be able to call `Meteor.call` within these wrapped
// functions and actually end up calling a server method (as
// opposed to just a client stub)
//
// XXX this shouldn't be necessary once #2315 is fixed (that
// is -- if we no longer run observe callbacks synchronously
// on Minimongo mutations).
var wrapNotInMethodStub = function (f) {
// It is strange that we refer to the `ddp` package directly
// here. This pattern appears elsewhere in the code, but