Skip to content

Commit

Permalink
use dust.nextTick internally
Browse files Browse the repository at this point in the history
  • Loading branch information
akdubya committed Nov 10, 2010
1 parent 45624f2 commit c5ff0a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/dust.js
Expand Up @@ -15,7 +15,7 @@ dust.render = function(name, context, callback) {

dust.stream = function(name, context) {
var stream = new Stream();
setTimeout(function() {
dust.nextTick(function() {
dust.load(name, stream.head, Context.wrap(context)).end();
});
return stream;
Expand Down
4 changes: 2 additions & 2 deletions test/examples.js
Expand Up @@ -147,9 +147,9 @@ exports.dustExamples = [
context: {
type: function(chunk) {
return chunk.map(function(chunk) {
setTimeout(function() {
dust.nextTick(function() {
chunk.end("Async");
}, 0);
});
});
}
},
Expand Down

0 comments on commit c5ff0a8

Please sign in to comment.