diff options
author | Ananya Sen | 2012-01-30 14:45:22 -0800 |
---|---|---|
committer | Ananya Sen | 2012-01-30 14:45:22 -0800 |
commit | 1fd16ce7052853719ec27527157f38b2fc87b077 (patch) | |
tree | 6678d9e306bde0d1ad12395ef586a7f51df539d5 | |
parent | 8c78a98410116f7a0fc03a75f40ac16027b8fc51 (diff) | |
download | ninja-1fd16ce7052853719ec27527157f38b2fc87b077.tar.gz |
calling coreioapi.js directly since filesystem.js will be deleted
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
-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 | } |