Make FileSystem a singleton.

This commit is contained in:
Glenn Ruehle committed 2013-10-17 15:39:35 -07:00
1 parent 1d815b9996
commit 290da888da
30 files changed
+187 -297

No files matched your search

@@ -32,6 +32,7 @@ define(function (require, exports, module) {
DocumentManager = brackets.getModule("document/DocumentManager"),
Editor = brackets.getModule("editor/Editor").Editor,
EditorManager = brackets.getModule("editor/EditorManager"),
FileSystem = brackets.getModule("filesystem/FileSystem"),
FileUtils = brackets.getModule("file/FileUtils"),
SpecRunnerUtils = brackets.getModule("spec/SpecRunnerUtils"),
UnitTestReporter = brackets.getModule("test/UnitTestReporter"),
@@ -1544,7 +1545,7 @@ define(function (require, exports, module) {
function getPreferences(path) {
preferences = null;
brackets.appFileSystem.resolve(path, function (err, file) {
FileSystem.resolve(path, function (err, file) {
if (!err) {
FileUtils.readAsText(file).done(function (text) {
var configObj = null;