Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66242D1F6 for ; Tue, 9 Oct 2012 23:26:04 +0000 (UTC) Received: (qmail 8009 invoked by uid 500); 9 Oct 2012 23:26:04 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 7982 invoked by uid 500); 9 Oct 2012 23:26:04 -0000 Mailing-List: contact callback-dev-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-dev@incubator.apache.org Received: (qmail 7939 invoked by uid 99); 9 Oct 2012 23:26:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 23:26:04 +0000 Date: Tue, 9 Oct 2012 23:26:03 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <752142103.17301.1349825164035.JavaMail.jiratomcat@arcas> In-Reply-To: <1759775064.758.1349370587397.JavaMail.jiratomcat@arcas> Subject: [jira] [Assigned] (CB-1586) iOS Entry.setMetaData example is incorrect MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-1586?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah reassigned CB-1586: ------------------------------------ Assignee: Shazron Abdullah (was: Michael Brooks) > iOS Entry.setMetaData example is incorrect > ------------------------------------------ > > Key: CB-1586 > URL: https://issues.apache.org/jira/browse/CB-1586 > Project: Apache Cordova > Issue Type: Bug > Components: Docs > Affects Versions: 2.1.0 > Reporter: Becky Gibson > Assignee: Shazron Abdullah > Fix For: 2.2.0 > > > See the long iOS example here: http://docs.phonegap.com/en/2.1.0/cordova_file_file.md.html#FileEntry_setmetadata. The DirectoryEntry example also needs to be fixed. > Need to modify this function in the example in order for it to work correctly: > ORIGINAL: > var onGetFileWin = function(parent) { > parent.setMetadata(onSetMetadataWin, onSetMetadataFail, { metadataKey: metadataValue}); > } > FIXED: > var onGetDirectoryWin = function(parent) { > var dataObj = {}; > dataObj[metadataKey] = metadataValue; > parent.setMetadata(onSetMetadataWin, onSetMetadataFail, dataObj); > } > otherwise the object gets set with "metadataKey" as the name rather than the value of metadataKey variable. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira