1- import Trackr from 'trackr ' ;
1+ import Tracker from './Tracker.js ' ;
22import EJSON from 'ejson' ;
33import DDP from '../lib/ddp.js' ;
44import Random from '../lib/Random' ;
@@ -22,7 +22,7 @@ const Meteor = {
2222 } ,
2323 Random,
2424 Mongo,
25- Tracker : Trackr ,
25+ Tracker,
2626 EJSON ,
2727 ReactiveDict,
2828 Collection,
@@ -290,7 +290,7 @@ const Meteor = {
290290 params : EJSON . clone ( params ) ,
291291 inactive : false ,
292292 ready : false ,
293- readyDeps : new Trackr . Dependency ( ) ,
293+ readyDeps : new Tracker . Dependency ( ) ,
294294 readyCallback : callbacks . onReady ,
295295 stopCallback : callbacks . onStop ,
296296 stop : function ( ) {
@@ -320,19 +320,19 @@ const Meteor = {
320320 subscriptionId : id ,
321321 } ;
322322
323- if ( Trackr . active ) {
323+ if ( Tracker . active ) {
324324 // We're in a reactive computation, so we'd like to unsubscribe when the
325325 // computation is invalidated... but not if the rerun just re-subscribes
326326 // to the same subscription! When a rerun happens, we use onInvalidate
327327 // as a change to mark the subscription "inactive" so that it can
328328 // be reused from the rerun. If it isn't reused, it's killed from
329329 // an afterFlush.
330- Trackr . onInvalidate ( function ( c ) {
330+ Tracker . onInvalidate ( function ( c ) {
331331 if ( Data . subscriptions [ id ] ) {
332332 Data . subscriptions [ id ] . inactive = true ;
333333 }
334334
335- Trackr . afterFlush ( function ( ) {
335+ Tracker . afterFlush ( function ( ) {
336336 if ( Data . subscriptions [ id ] && Data . subscriptions [ id ] . inactive ) {
337337 handle . stop ( ) ;
338338 }
0 commit comments