lib/pubsub.js
function publishUpdate(combo) {
    GLOBAL.svc.indexer.retrieveByURI(combo.uri, function(err, res) {
    if (!err && res && res._source) {
        res = res._source;
        combo.selector = 'body';
        combo.text = res.text;
        combo.content = res.content;
        fayeClient.publish('/item/annotations/annotate' + (combo.member ? '/' + combo.member.replace(/ /g, '_') : ''), combo);
        debounceUpdate(combo);
      } else {
        GLOBAL.error('not annotated', err, combo);
      }
    });
  }
function publishUpdate(combo) {
    GLOBAL.svc.indexer.retrieveByURI(combo.uri, function(err, res) {
    if (!err && res && res._source) {
        res = res._source;
        combo.selector = 'body';
        combo.text = res.text;
        combo.content = res.content;
        fayeClient.publish('/item/annotations/annotate' + (combo.member ? '/' + combo.member.replace(/ /g, '_') : ''), combo);
        debounceUpdate(combo);
      } else {
        GLOBAL.error('not annotated', err, combo);
      }
    });
  }
function publishUpdate ( combo ) { GLOBAL . svc . indexer . retrieveByURI ( combo . uri , function ( err , res ) { if ( ! err && res && res . _source ) { res = res . _source ; combo . selector = 'body' ; combo . text = res . text ; combo . content = res . content ; fayeClient . publish ( '/item/annotations/annotate' + ( combo . member ? '/' + combo . member . replace ( / / g , '_' ) : '' ) , combo ) ; debounceUpdate ( combo ) ; } else { GLOBAL . error ( 'not annotated' , err , combo ) ; } } ) ; }
Request an update for this URI, optionally from a specific member
Request an update for this URI optionally from a specific member