Skip to content

Commit

Permalink
Merge pull request YahooArchive#1303 from zhouyaoji/docs_dyn_creating…
Browse files Browse the repository at this point in the history
…_mojits_fix

[doc] Fixing code in dynamic mojit dispatching example: see issue YahooArchive#1273
  • Loading branch information
Joe Catera committed Dec 7, 2013
2 parents d3693ef + cac011e commit aa10413
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/dev_guide/topics/mojito_run_dyn_defined_mojits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,11 @@ ParentMojit
"context" : ac.context,
"params" : {}
};
ac._dispatch(command, ac);
var newAdapter = new Y.mojito.OutputBuffer("childBuffer", function(err, data, meta) {
ac.done(data, meta);
});
newAdapter = Y.mix(newAdapter, ac._adapter);
ac._dispatch(command, newAdapter);
}
};
}, '0.0.1', {requires: ['mojito', 'mojito-assets-addon']});
Expand Down

0 comments on commit aa10413

Please sign in to comment.