mirror of
https://github.com/atom/atom.git
synced 2026-02-12 15:45:23 -05:00
atom variable holds all global state and is shared across contexts.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
paths = [
|
||||
"#{$atom.loadPath}/spec"
|
||||
"#{$atom.loadPath}/src/stdlib"
|
||||
"#{$atom.loadPath}/src/atom"
|
||||
"#{$atom.loadPath}/src"
|
||||
"#{$atom.loadPath}/extensions"
|
||||
"#{$atom.loadPath}/vendor"
|
||||
"#{$atom.loadPath}/static"
|
||||
"#{atom.loadPath}/spec"
|
||||
"#{atom.loadPath}/src/stdlib"
|
||||
"#{atom.loadPath}/src/atom"
|
||||
"#{atom.loadPath}/src"
|
||||
"#{atom.loadPath}/extensions"
|
||||
"#{atom.loadPath}/vendor"
|
||||
"#{atom.loadPath}/static"
|
||||
]
|
||||
|
||||
window.__filename = null
|
||||
@@ -100,7 +100,7 @@ __expand = (path) ->
|
||||
return null
|
||||
|
||||
__exists = (path) ->
|
||||
$native.exists path
|
||||
atom.native.exists path
|
||||
|
||||
__coffeeCache = (filePath) ->
|
||||
{CoffeeScript} = require 'coffee-script'
|
||||
@@ -108,7 +108,7 @@ __coffeeCache = (filePath) ->
|
||||
|
||||
__read = (path) ->
|
||||
try
|
||||
$native.read(path)
|
||||
atom.native.read(path)
|
||||
catch e
|
||||
throw "require: can't read #{path}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user