Freeing compilation from 250ms delay

This commit is contained in:
Trevor Burnham
2011-12-22 11:03:39 -08:00
parent 97cd7cc1c9
commit 2a0521fba6
2 changed files with 2 additions and 2 deletions

View File

@@ -225,8 +225,8 @@
};
try {
return watcher = fs.watch(source, callback = function(event) {
compile();
return wait(250, function() {
compile();
try {
watcher.close();
return watcher = fs.watch(source, callback);

View File

@@ -196,8 +196,8 @@ watch = (source, base) ->
try
watcher = fs.watch source, callback = (event) ->
compile()
wait 250, ->
compile()
try
watcher.close()
watcher = fs.watch source, callback