Improve Deps performance by not using _.bind

This commit is contained in:
Avital Oliver
2014-03-10 15:54:43 -07:00
parent 57104f6a8d
commit 46964c77e6

View File

@@ -310,7 +310,7 @@ _.extend(Deps, {
constructingComputation = true;
var c = new Deps.Computation(function (c) {
Meteor._noYieldsAllowed(_.bind(f, this, c));
Meteor._noYieldsAllowed(function () { f(c); });
}, Deps.currentComputation);
if (Deps.active)