mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Freeing compilation from 250ms delay
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user