Navigation Menu

Skip to content

Commit

Permalink
Fixed bug in using parsed in render function
Browse files Browse the repository at this point in the history
  • Loading branch information
RayMorgan committed Dec 20, 2010
1 parent 9b03e49 commit 1c0c7b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mu.js
Expand Up @@ -48,7 +48,7 @@ mu.compile = function(filename, callback, unique) {
i++; i++;


} else { } else {
callback(undefined, parsed); callback(undefined, [parsed, {}]);
} }
}()); }());
}); });
Expand Down
2 changes: 1 addition & 1 deletion test/run_examples_test.js
Expand Up @@ -34,7 +34,7 @@ mu.root = path.join(__dirname, 'examples');


var buffer = ''; var buffer = '';


mu.render(name + '.html', js) mu.render(parsed, js)
.on('data', function (c) { buffer += c.toString(); }) .on('data', function (c) { buffer += c.toString(); })
.on('end', function () { .on('end', function () {
assert.equal(buffer, text); assert.equal(buffer, text);
Expand Down

0 comments on commit 1c0c7b9

Please sign in to comment.