src/statorgfc.js
function(key, oldval, value) {
    if (store._changed_keys.indexOf(key) === -1) {
      store._changed_keys.push(key)
    }

    // suppress active timeout (if any)
    if (store._debounce_timeout) {
      store._clearDebounceTimeout()
    }

    if (store.options.debounce_ms) {
      // delay event emission and set new timeout id
      store._debounce_timeout = setTimeout(store._publish, store.options.debounce_ms)
    } else {
      // publish immediately
      store._publish()
    }
  }
function(key, oldval, value) {
    if (store._changed_keys.indexOf(key) === -1) {
      store._changed_keys.push(key)
    }

    // suppress active timeout (if any)
    if (store._debounce_timeout) {
      store._clearDebounceTimeout()
    }

    if (store.options.debounce_ms) {
      // delay event emission and set new timeout id
      store._debounce_timeout = setTimeout(store._publish, store.options.debounce_ms)
    } else {
      // publish immediately
      store._publish()
    }
  }
function ( key , oldval , value ) { if ( store . _changed_keys . indexOf ( key ) === - 1 ) { store . _changed_keys . push ( key ) } // suppress active timeout (if any) if ( store . _debounce_timeout ) { store . _clearDebounceTimeout ( ) } if ( store . options . debounce_ms ) { // delay event emission and set new timeout id store . _debounce_timeout = setTimeout ( store . _publish , store . options . debounce_ms ) } else { // publish immediately store . _publish ( ) } }
Emit event to subscribers based on timeout rules

@param key     key to change
@param oldval  original value (for logging purposes)
@param value   new value to assign
Emit event to subscribers based on timeout rules