         isChanged = true
         locallyCompiledCount += 1
         sourceName = getName sourceFile
-        compiled.push sourceName unless sourceName in compiled
-      isChanged = true if not isChanged and generatedFile in disposedFiles.generated
+        compiled.push sourceName if compiled.indexOf(sourceName) is -1
+      isChanged = true if not isChanged and dgen.indexOf(generatedFile) >= 0
     if isChanged
       generated.push getName generatedFile
       cachedCount += (generatedFile.sourceFiles.length - locallyCompiledCount)

    offPlugins = config.plugins.off or []
    onlyPlugins = config.plugins.only or []
    packages = (loadPackages '.').filter ({brunchPluginName}) ->
      if offPlugins.length and brunchPluginName in offPlugins
        false
      else if onlyPlugins.length and brunchPluginName not in onlyPlugins
        false
      else
        true

bindWatcherEvents = (config, fileList, compilers, linters, watcher, reload, onChange) ->
  {possibleConfigFiles} = config._normalized.paths
  {packageConfig, bowerConfig} = config.paths
  jsonConfigs = [packageConfig, bowerConfig]

  changeHandler = (path) ->
    onChange()
