Permalink
Browse files

fix regression from coco bug

  • Loading branch information...
1 parent 5010be0 commit bb9fc86037b312122ee95efe4c6406ed1aa1f30e @andrewrk committed Sep 5, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/watch.co
View
@@ -1,7 +1,7 @@
fs = require('fs')
# emulates fs.watch
-const watchFileFallback = (filename, options, cb) ->
+function watchFileFallback (filename, options, cb)
options.interval = 701
fs.watchFile filename, options, !(curr, prev) ->
if curr.mtime is not prev.mtime
@@ -12,7 +12,7 @@ const watchFile = fs.watch or watchFileFallback
# when any one of these files change, call callback
# and stop watching
-export const watchFilesOnce = (files, cb) ->
+export function watchFilesOnce (files, cb)
watchers = []
const close = !->
watcher.close! for watcher of watchers

0 comments on commit bb9fc86

Please sign in to comment.