aboutsummaryrefslogtreecommitdiff
path: root/js/io/utils
diff options
context:
space:
mode:
authorAnanya Sen2012-02-01 11:59:11 -0800
committerAnanya Sen2012-02-01 11:59:11 -0800
commit553fce7721cacfd13b6013fdcdd0243c90083b5e (patch)
treed0ef0c7fdf19053e2d78a3700e7234955eccb30c /js/io/utils
parent61ff730a1897890f71403cbfac4d15269e2d271f (diff)
downloadninja-553fce7721cacfd13b6013fdcdd0243c90083b5e.tar.gz
fixed reference to coreioapi
cleaning up opening code view tabs Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/utils')
-rw-r--r--js/io/utils/file-utils.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/io/utils/file-utils.js b/js/io/utils/file-utils.js
index 0afdffc6..0a4d9687 100644
--- a/js/io/utils/file-utils.js
+++ b/js/io/utils/file-utils.js
@@ -4,8 +4,6 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. 4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */ 5</copyright> */
6 6
7var fileSystem = require("js/io/system/coreioapi").CoreIoApi;
8
9var FileUtils = exports.FileUtils = Object.create(Object.prototype, { 7var FileUtils = exports.FileUtils = Object.create(Object.prototype, {
10 8
11 /*** 9 /***
@@ -61,7 +59,7 @@ var FileUtils = exports.FileUtils = Object.create(Object.prototype, {
61 59
62 uri = ""+folderUri+fileUri; 60 uri = ""+folderUri+fileUri;
63 61
64 response = fileSystem.fileExists({"uri":uri}); 62 response = this.application.ninja.coreIoApi.fileExists({"uri":uri});
65 if(!!response && response.success && (response.status === 204)){ 63 if(!!response && response.success && (response.status === 204)){
66 status = true; 64 status = true;
67 }else if(!!response && response.success && (response.status === 404)){ 65 }else if(!!response && response.success && (response.status === 404)){