mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-08 16:19:17 +03:00
💄
This commit is contained in:
parent
603121c755
commit
15005657bf
@ -25,10 +25,10 @@ require = (file, cb) ->
|
|||||||
|
|
||||||
if __modules[file]?
|
if __modules[file]?
|
||||||
if not __modules.loaded[file.toLowerCase()]?
|
if not __modules.loaded[file.toLowerCase()]?
|
||||||
console.warn("Circular require: #{__filename} required #{file}")
|
console.warn "Circular require: #{__filename} required #{file}"
|
||||||
return __modules[file]
|
return __modules[file]
|
||||||
else if __modules.loaded[file.toLowerCase()]
|
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 ]
|
[ previousFilename, window.__filename ] = [ __filename, file ]
|
||||||
__modules[file] = {} # Fix for circular references
|
__modules[file] = {} # Fix for circular references
|
||||||
|
Loading…
Reference in New Issue
Block a user