lib/js/ComponentView.js
function() {

        // Don't continue if the probe portion was what changed.
        var thisMonitor = JSON.stringify(monitor.toMonitorJSON());
        if (thisMonitor === t.priorMonitor) {
          return;
        }

        // Remove the component listeners
        log.info('render.monitorChange', t.logCtxt);
        component.off('change:css change:viewOptions', applyStyles);
        component.off('change:monitor', onMonitorChange, t);

        // Disconnect, then build a fresh component
        t.connectMonitor(false, function(){
          UI.pageView.removeComponent(t.model);
          UI.pageView.addComponent(t.model);
        });
      }
function() {

        // Don't continue if the probe portion was what changed.
        var thisMonitor = JSON.stringify(monitor.toMonitorJSON());
        if (thisMonitor === t.priorMonitor) {
          return;
        }

        // Remove the component listeners
        log.info('render.monitorChange', t.logCtxt);
        component.off('change:css change:viewOptions', applyStyles);
        component.off('change:monitor', onMonitorChange, t);

        // Disconnect, then build a fresh component
        t.connectMonitor(false, function(){
          UI.pageView.removeComponent(t.model);
          UI.pageView.addComponent(t.model);
        });
      }
function ( ) { // Don't continue if the probe portion was what changed. var thisMonitor = JSON . stringify ( monitor . toMonitorJSON ( ) ) ; if ( thisMonitor === t . priorMonitor ) { return ; } // Remove the component listeners log . info ( 'render.monitorChange' , t . logCtxt ) ; component . off ( 'change:css change:viewOptions' , applyStyles ) ; component . off ( 'change:monitor' , onMonitorChange , t ) ; // Disconnect, then build a fresh component t . connectMonitor ( false , function ( ) { UI . pageView . removeComponent ( t . model ) ; UI . pageView . addComponent ( t . model ) ; } ) ; }
Destroy this component, and render a new component if the underlying monitor definition changes.
Destroy this component and render a new component if the underlying monitor definition changes .