aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/document-controller.js
diff options
context:
space:
mode:
authorAnanya Sen2012-01-30 14:45:22 -0800
committerAnanya Sen2012-01-30 14:45:22 -0800
commit1fd16ce7052853719ec27527157f38b2fc87b077 (patch)
tree6678d9e306bde0d1ad12395ef586a7f51df539d5 /js/io/document/document-controller.js
parent8c78a98410116f7a0fc03a75f40ac16027b8fc51 (diff)
downloadninja-1fd16ce7052853719ec27527157f38b2fc87b077.tar.gz
calling coreioapi.js directly since filesystem.js will be deleted
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/document/document-controller.js')
-rwxr-xr-xjs/io/document/document-controller.js4
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
15var Montage = require("montage/core/core").Montage, 15var 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
20var HTMLDocument = require("js/io/document/html-document").HTMLDocument; 20var HTMLDocument = require("js/io/document/html-document").HTMLDocument;
21var TextDocument = require("js/io/document/text-document").TextDocument; 21var 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 }