cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-4630) DirectoryEntry.getFile - misleading example code?
Date Tue, 20 Aug 2013 06:00:52 GMT

     [ https://issues.apache.org/jira/browse/CB-4630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Peter updated CB-4630:
----------------------

    Description: 
The File API guide for the *DirectoryEntry.getFile* has Quick Example code in the guide showing
the successCallback argument called _'parent'_, but AFAIK it is not a parent at all, so the
example is misleading.

{code}
function success(parent) {
    console.log("Parent Name: " + parent.name);
}
{code}

Ref: http://cordova.apache.org/docs/en/2.9.0/cordova_file_file.md.html#DirectoryEntry

See also: CB-4629

  was:
The File API guide for the *DirectoryEntry.getFile* has Quick Example code in the guide showing
the successCallback argument called _'parent'_, but AFAIK it is not a parent at all, so the
example is misleading.

{code}
function success(parent) {
    console.log("Parent Name: " + parent.name);
}
{code}

Ref: http://cordova.apache.org/docs/en/2.9.0/cordova_file_file.md.html#DirectoryEntry

    
> DirectoryEntry.getFile - misleading example code?
> -------------------------------------------------
>
>                 Key: CB-4630
>                 URL: https://issues.apache.org/jira/browse/CB-4630
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Docs
>    Affects Versions: 2.9.0
>            Reporter: Peter
>            Assignee: Michael Brooks
>            Priority: Minor
>
> The File API guide for the *DirectoryEntry.getFile* has Quick Example code in the guide
showing the successCallback argument called _'parent'_, but AFAIK it is not a parent at all,
so the example is misleading.
> {code}
> function success(parent) {
>     console.log("Parent Name: " + parent.name);
> }
> {code}
> Ref: http://cordova.apache.org/docs/en/2.9.0/cordova_file_file.md.html#DirectoryEntry
> See also: CB-4629

--
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

Mime
View raw message