Make FileSystem a class, and support multiple instances.

This commit is contained in:
Glenn Ruehle committed 2013-07-21 12:25:39 -07:00
1 parent 0089986f1e
commit 848e0b67f4
26 files changed
+372 -252

No files matched your search

@@ -1370,9 +1370,11 @@ define(function (require, exports, module) {
preferences;
function getPreferences(path) {
var file = brackets.appFileSystem.getFileForPath(path);
preferences = null;
FileUtils.readAsText(path).done(function (text) {
FileUtils.readAsText(file).done(function (text) {
var configObj = null;
try {
configObj = JSON.parse(text);