lib/ReactViews/ObserveModelMixin.js
function disposeSubscription(component) {
  if (defined(component.__observeModelChangeSubscriptions)) {
    for (
      let i = 0;
      i < component.__observeModelChangeSubscriptions.length;
      ++i
    ) {
      component.__observeModelChangeSubscriptions[i].dispose();
    }
    component.__observeModelChangeSubscriptions = undefined;
  }
}
function disposeSubscription(component) {
  if (defined(component.__observeModelChangeSubscriptions)) {
    for (
      let i = 0;
      i < component.__observeModelChangeSubscriptions.length;
      ++i
    ) {
      component.__observeModelChangeSubscriptions[i].dispose();
    }
    component.__observeModelChangeSubscriptions = undefined;
  }
}
function disposeSubscription ( component ) { if ( defined ( component . __observeModelChangeSubscriptions ) ) { for ( let i = 0 ; i < component . __observeModelChangeSubscriptions . length ; ++ i ) { component . __observeModelChangeSubscriptions [ i ] . dispose ( ) ; } component . __observeModelChangeSubscriptions = undefined ; } }
Disposes of all subscriptions that a component currently has.

@param component The component to find and dispose subscriptions on.
Disposes of all subscriptions that a component currently has .