code: function(connect) {
        var t = this,
            triggeredBy = t.get('triggeredBy'),
            onTrigger = t.onTrigger.bind(t);
  
        // Default to listen on changes to all monitors
        if (!triggeredBy) {
          for (var monitorName in t.monitors) {
            t.monitors[monitorName][connect ? 'on' : 'off']('change', t.onTrigger, t);
          }
          return;
        }
  
        // Process the elements in triggeredBy
        for (var name in triggeredBy) {
          var value = triggeredBy[name];
  
          // Construct a new cron job
          if (name === 'cron') {
            if (connect) {
              t.cronJob = new Cron.CronJob(value, onTrigger);
            }
            else {
              if (t.cronJob.initiated) {
                clearInterval(t.CronJob.timer);
              }
              else {
                setTimeout(function(){clearInterval(t.cronJob.timer);}, 1000);
              }
            }
          }
  
          // Set a polling interval
          else if (name === 'interval') {
            if (connect) {
              t.interval = setInterval(onTrigger, value);
            }
            else {
              clearInterval(t.interval);
              t.interval = null;
            }
          }
  
          // Must be a monitor name
          else {
            t.monitors[name][connect ? 'on' : 'off'](value, onTrigger);
          }
        }
      }
docs: Connect the change listeners
  
  @private
  @method connectListeners