Fixing bug that was causing directory deletes to be ignored

This commit is contained in:
Trevor Burnham
2011-12-18 15:21:50 -05:00
parent d5acd7f338
commit 55998f7481
2 changed files with 5 additions and 10 deletions

View File

@@ -237,7 +237,7 @@ unwatchDir = (source, base) ->
prevSources = sources.slice()
toRemove = (file for file in sources when file.indexOf(source) >= 0)
removeSource file, base, yes for file in toRemove
return if sources[i] is prevSources[i] for i in [0...sources.length]
return unless sources.some (s, i) -> prevSources[i] isnt s
compileJoin()
# Remove a file from our source list, and source code cache. Optionally remove