Make Deps not require Meteor again

This commit is contained in:
David Greenspan
2014-04-03 14:26:03 -07:00
parent 266095c913
commit db8c05bd62

View File

@@ -46,7 +46,7 @@ var _throwOrLog = function (from, e) {
// where `_noYieldsAllowed` is a no-op. `f` may be a computation
// function or an onInvalidate callback.
var callWithNoYieldsAllowed = function (f, comp) {
if (Meteor.isClient) {
if ((typeof Meteor === 'undefined') || Meteor.isClient) {
f(comp);
} else {
Meteor._noYieldsAllowed(function () {