cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Becky Gibson (JIRA)" <>
Subject [jira] [Created] (CB-1586) iOS Entry.setMetaData example is incorrect
Date Thu, 04 Oct 2012 17:09:47 GMT
Becky Gibson created CB-1586:

             Summary: iOS Entry.setMetaData example is incorrect
                 Key: CB-1586
             Project: Apache Cordova
          Issue Type: Bug
          Components: Docs
    Affects Versions: 2.1.0
            Reporter: Becky Gibson
            Assignee: Michael Brooks
             Fix For: 2.2.0

See the long iOS example here:
The DirectoryEntry example also needs to be fixed.

Need to modify this function in the example in order for it to work correctly:


var onGetFileWin = function(parent) {
   parent.setMetadata(onSetMetadataWin, onSetMetadataFail, { metadataKey: metadataValue});

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

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:

View raw message