API Docs for: 0.9.0

OutputBuffer Class

OutputBuffer is an advanced adapter that can be use to dispatch a command while controlling the output of the operation for that command. This is useful for composite executions, and child rendering.

var newAdapter = new Y.mojito.OutputBuffer('foo', function (err, data, meta) {
    // do something here...
newAdapter = Y.mix(newAdapter, originalAdapter); // inherit mojito stuff
dispatcher(newCommand, newAdapter);

The newAdapter exposes a regular adapter api, which means it has flush, done and error methods, plus anything else coming from originalAdapter.



  • id
  • callback


  • id String

    identified for the mojit instance/action to be buffered

  • callback Function

Item Index