This commit is contained in:
Chris Wanstrath 2011-11-25 19:20:10 -08:00
parent 603121c755
commit 15005657bf

View File

@ -25,10 +25,10 @@ require = (file, cb) ->
if __modules[file]?
if not __modules.loaded[file.toLowerCase()]?
console.warn("Circular require: #{__filename} required #{file}")
console.warn "Circular require: #{__filename} required #{file}"
return __modules[file]
else if __modules.loaded[file.toLowerCase()]
console.warn("Multiple requires (different cases) for #{file}")
console.warn "Multiple requires (different cases) for #{file}"
[ previousFilename, window.__filename ] = [ __filename, file ]
__modules[file] = {} # Fix for circular references