You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/09/27 00:26:10 UTC
[10/14] git commit: CB-4889 renaming references
CB-4889 renaming references
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/14da0cca
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/14da0cca
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/14da0cca
Branch: refs/heads/master
Commit: 14da0cca01bbbfda1fce73b23124279861729d5f
Parents: f8de9f8
Author: Anis Kadri <an...@apache.org>
Authored: Wed Sep 25 16:18:49 2013 +0200
Committer: Anis Kadri <an...@apache.org>
Committed: Wed Sep 25 16:18:49 2013 +0200
----------------------------------------------------------------------
www/Entry.js | 4 ++--
www/blackberry10/DirectoryEntry.js | 22 +++++++++++-----------
www/blackberry10/resolveLocalFileSystemURI.js | 8 ++++----
3 files changed, 17 insertions(+), 17 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14da0cca/www/Entry.js
----------------------------------------------------------------------
diff --git a/www/Entry.js b/www/Entry.js
index c4985dc..0e1bc02 100644
--- a/www/Entry.js
+++ b/www/Entry.js
@@ -107,7 +107,7 @@ Entry.prototype.moveTo = function(parent, newName, successCallback, errorCallbac
if (entry) {
if (successCallback) {
// create appropriate Entry object
- var result = (entry.isDirectory) ? new (require('./DirectoryEntry'))(entry.name, entry.fullPath) : new (require('org.apache.cordova.core.file.FileEntry'))(entry.name, entry.fullPath);
+ var result = (entry.isDirectory) ? new (require('./DirectoryEntry'))(entry.name, entry.fullPath) : new (require('org.apache.cordova.file.FileEntry'))(entry.name, entry.fullPath);
successCallback(result);
}
}
@@ -148,7 +148,7 @@ Entry.prototype.copyTo = function(parent, newName, successCallback, errorCallbac
if (entry) {
if (successCallback) {
// create appropriate Entry object
- var result = (entry.isDirectory) ? new (require('./DirectoryEntry'))(entry.name, entry.fullPath) : new (require('org.apache.cordova.core.file.FileEntry'))(entry.name, entry.fullPath);
+ var result = (entry.isDirectory) ? new (require('./DirectoryEntry'))(entry.name, entry.fullPath) : new (require('org.apache.cordova.file.FileEntry'))(entry.name, entry.fullPath);
successCallback(result);
}
}
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14da0cca/www/blackberry10/DirectoryEntry.js
----------------------------------------------------------------------
diff --git a/www/blackberry10/DirectoryEntry.js b/www/blackberry10/DirectoryEntry.js
index 295f88e..cb6628d 100644
--- a/www/blackberry10/DirectoryEntry.js
+++ b/www/blackberry10/DirectoryEntry.js
@@ -33,7 +33,7 @@ utils.extend(DirectoryEntry, Entry);
function err(sandboxState, errorCallback) {
return function (e) {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [sandboxState]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [sandboxState]);
errorCallback(e);
}
};
@@ -50,22 +50,22 @@ DirectoryEntry.prototype.getDirectory = function (path, options, successCallback
sandboxState = sandboxed;
}, function (e) {
console.log("[ERROR]: Could not retrieve sandbox state ", e);
- }, "org.apache.cordova.core.file", "isSandboxed");
+ }, "org.apache.cordova.file", "isSandboxed");
argscheck.checkArgs('sOFF', 'DirectoryEntry.getDirectory', arguments);
if (fileUtils.isOutsideSandbox(path)) {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [false]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [false]);
window.webkitRequestFileSystem(window.PERSISTENT, this.filesystem._size, function (fs) {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [sandboxState]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [sandboxState]);
fs.root.getDirectory(currentPath + '/' + path, options, function (entry) {
successCallback(fileUtils.createEntry(entry));
}, err(sandboxState, errorCallback));
}, err(sandboxState, errorCallback));
} else {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [true]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [true]);
window.webkitRequestFileSystem(fileUtils.getFileSystemName(this.filesystem) === "persistent" ? window.PERSISTENT : window.TEMPORARY, this.filesystem._size, function (fs) {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [sandboxState]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [sandboxState]);
fs.root.getDirectory(currentPath + '/' + path, options, function (entry) {
successCallback(fileUtils.createEntry(entry));
}, err(sandboxState, errorCallback));
@@ -86,22 +86,22 @@ DirectoryEntry.prototype.getFile = function (path, options, successCallback, err
sandboxState = sandboxed;
}, function (e) {
console.log("[ERROR]: Could not retrieve sandbox state ", e);
- }, "org.apache.cordova.core.file", "isSandboxed");
+ }, "org.apache.cordova.file", "isSandboxed");
argscheck.checkArgs('sOFF', 'DirectoryEntry.getFile', arguments);
if (fileUtils.isOutsideSandbox(path)) {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [false]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [false]);
window.webkitRequestFileSystem(window.PERSISTENT, this.filesystem._size, function (fs) {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [sandboxState]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [sandboxState]);
fs.root.getFile(currentPath + '/' + path, options, function (entry) {
successCallback(fileUtils.createEntry(entry));
}, err(sandboxState, errorCallback));
}, err(sandboxState, errorCallback));
} else {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [true]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [true]);
window.webkitRequestFileSystem(fileUtils.getFileSystemName(this.filesystem) === "persistent" ? window.PERSISTENT: window.TEMPORARY, this.filesystem._size, function (fs) {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [sandboxState]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [sandboxState]);
fs.root.getFile(currentPath + '/' + path, options, function (entry) {
successCallback(fileUtils.createEntry(entry));
}, err(sandboxState, errorCallback));
http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/14da0cca/www/blackberry10/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/www/blackberry10/resolveLocalFileSystemURI.js b/www/blackberry10/resolveLocalFileSystemURI.js
index 06c1f73..4d5af61 100644
--- a/www/blackberry10/resolveLocalFileSystemURI.js
+++ b/www/blackberry10/resolveLocalFileSystemURI.js
@@ -35,12 +35,12 @@ module.exports = function (uri, success, fail) {
sandboxState = sandboxed;
}, function (e) {
console.log("[ERROR]: Could not retrieve sandbox state ", e);
- }, "org.apache.cordova.core.file", "isSandboxed");
+ }, "org.apache.cordova.file", "isSandboxed");
if (fileUtils.isOutsideSandbox(stripURI(decodedURI))) {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [false]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [false]);
} else {
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [true]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [true]);
}
window.webkitResolveLocalFileSystemURL(decodedURI, function (entry) {
success(fileUtils.createEntry(entry));
@@ -51,5 +51,5 @@ module.exports = function (uri, success, fail) {
fail(e);
});
});
- cordova.exec(null, null, "org.apache.cordova.core.file", "setSandbox", [sandboxState]);
+ cordova.exec(null, null, "org.apache.cordova.file", "setSandbox", [sandboxState]);
};