src/backbone.radio.js
function(name, callback, context) {
    if (eventsApi(this, 'replyOnce', name, [callback, context])) {
      return this;
    }

    var self = this;

    var once = _.once(function() {
      self.stopReplying(name);
      return makeCallback(callback).apply(this, arguments);
    });

    return this.reply(name, once, context);
  }
function(name, callback, context) {
    if (eventsApi(this, 'replyOnce', name, [callback, context])) {
      return this;
    }

    var self = this;

    var once = _.once(function() {
      self.stopReplying(name);
      return makeCallback(callback).apply(this, arguments);
    });

    return this.reply(name, once, context);
  }
function ( name , callback , context ) { if ( eventsApi ( this , 'replyOnce' , name , [ callback , context ] ) ) { return this ; } var self = this ; var once = _ . once ( function ( ) { self . stopReplying ( name ) ; return makeCallback ( callback ) . apply ( this , arguments ) ; } ) ; return this . reply ( name , once , context ) ; }
Set up a handler that can only be requested once
Set up a handler that can only be requested once