Return-Path: X-Original-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C6EF79F2F for ; Fri, 2 Mar 2012 14:43:18 +0000 (UTC) Received: (qmail 56985 invoked by uid 500); 2 Mar 2012 14:43:18 -0000 Delivered-To: apmail-incubator-callback-commits-archive@incubator.apache.org Received: (qmail 56967 invoked by uid 500); 2 Mar 2012 14:43:18 -0000 Mailing-List: contact callback-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-commits@incubator.apache.org Received: (qmail 56960 invoked by uid 99); 2 Mar 2012 14:43:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 14:43:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.114] (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2012 14:43:17 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 4C9C756AC; Fri, 2 Mar 2012 14:42:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: deedubbu@apache.org To: callback-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: webworks commit: Add Entry.toURL, deprecate Entry.toURI. Message-Id: <20120302144257.4C9C756AC@tyr.zones.apache.org> Date: Fri, 2 Mar 2012 14:42:57 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Updated Branches: refs/heads/master 74117b478 -> 685abcdfb Add Entry.toURL, deprecate Entry.toURI. Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/commit/685abcdf Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/685abcdf Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/685abcdf Branch: refs/heads/master Commit: 685abcdfb20ea5c7f7d01a95e141bd984bd34723 Parents: 74117b4 Author: Drew Walters Authored: Fri Mar 2 08:42:04 2012 -0600 Committer: Drew Walters Committed: Fri Mar 2 08:42:04 2012 -0600 ---------------------------------------------------------------------- javascript/file.js | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/685abcdf/javascript/file.js ---------------------------------------------------------------------- diff --git a/javascript/file.js b/javascript/file.js index 976696a..be1d2de 100644 --- a/javascript/file.js +++ b/javascript/file.js @@ -801,8 +801,25 @@ var Entry = Entry || (function() { * @param errorCallback * {Function} called with a FileError */ + Entry.prototype.toURL = function() { + // fullPath attribute contains the full URI on BlackBerry + return this.fullPath; + }; + + /** + * Return a URI that can be used to identify this entry. + * + * @param mimeType + * {DOMString} for a FileEntry, the mime type to be used to + * interpret the file, when loaded through this URI. + * @param successCallback + * {Function} called with the new Entry object + * @param errorCallback + * {Function} called with a FileError + */ Entry.prototype.toURI = function(mimeType, successCallback, errorCallback) { // fullPath attribute contains the full URI on BlackBerry + console.log("DEPRECATED: Update your code to use 'toURL'"); return this.fullPath; };