1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Revert "fixing api changes (no more promises) for node v.0.1.29"

This reverts commit 9503ea3040.
This commit is contained in:
Jeremy Ashkenas 2010-02-20 18:12:09 -05:00
parent 9503ea3040
commit 2d3f6b80c1
5 changed files with 9 additions and 9 deletions

View file

@ -72,7 +72,7 @@
if (!((source = sources.shift()))) {
return null;
}
return fs.readFile(source, function(err, code) {
return fs.readFile(source).addCallback(function(code) {
compile_script(source, code);
return compile_scripts();
});
@ -121,7 +121,7 @@
if (curr.mtime.getTime() === prev.mtime.getTime()) {
return null;
}
return fs.readFile(source, function(err, code) {
return fs.readFile(source).addCallback(function(code) {
return compile_script(source, code);
});
}));