diff options
Diffstat (limited to 'js/io/document')
-rwxr-xr-x | js/io/document/document-controller.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/io/document/document-controller.js b/js/io/document/document-controller.js index 53575a21..7cf7f409 100755 --- a/js/io/document/document-controller.js +++ b/js/io/document/document-controller.js | |||
@@ -15,7 +15,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
15 | var Montage = require("montage/core/core").Montage, | 15 | var Montage = require("montage/core/core").Montage, |
16 | Component = require("montage/ui/component").Component, | 16 | Component = require("montage/ui/component").Component, |
17 | Uuid = require("montage/core/uuid").Uuid, | 17 | Uuid = require("montage/core/uuid").Uuid, |
18 | fileSystem = require("js/io/system/filesystem").FileSystem; | 18 | fileSystem = require("js/io/system/coreioapi").CoreIoApi; |
19 | 19 | ||
20 | var HTMLDocument = require("js/io/document/html-document").HTMLDocument; | 20 | var HTMLDocument = require("js/io/document/html-document").HTMLDocument; |
21 | var TextDocument = require("js/io/document/text-document").TextDocument; | 21 | var TextDocument = require("js/io/document/text-document").TextDocument; |
@@ -104,7 +104,7 @@ var DocumentController = exports.DocumentController = Montage.create(Component, | |||
104 | 104 | ||
105 | // Get file from Jose Code with a callback to here | 105 | // Get file from Jose Code with a callback to here |
106 | if(!!uri){ | 106 | if(!!uri){ |
107 | response = fileSystem.shellApiHandler.openFile({"uri":uri}); | 107 | response = fileSystem.openFile({"uri":uri}); |
108 | if((response.success === true) && ((response.status === 200) || (response.status === 304))){ | 108 | if((response.success === true) && ((response.status === 200) || (response.status === 304))){ |
109 | fileContent = response.content; | 109 | fileContent = response.content; |
110 | } | 110 | } |