Files
meteor/packages/tracker/deprecated.js
Avital Oliver ca8ae9462d Export 'Deps' from the tracker package.
Specifically, this gives apps access to Deps (via meteor-platform,
formerly known as standard-app-packages)
2014-08-28 12:13:55 -07:00

21 lines
543 B
JavaScript

// Deprecated functions.
// These functions used to be on the Meteor object (and worked slightly
// differently).
// XXX COMPAT WITH 0.5.7
Meteor.flush = Tracker.flush;
Meteor.autorun = Tracker.autorun;
// We used to require a special "autosubscribe" call to reactively subscribe to
// things. Now, it works with autorun.
// XXX COMPAT WITH 0.5.4
Meteor.autosubscribe = Tracker.autorun;
// This Tracker API briefly existed in 0.5.8 and 0.5.9
// XXX COMPAT WITH 0.5.9
Tracker.depend = function (d) {
return d.depend();
};
Deps = Tracker;