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:
parent
9503ea3040
commit
2d3f6b80c1
5 changed files with 9 additions and 9 deletions
|
@ -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);
|
||||
});
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue