You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/08/28 00:31:52 UTC
[jira] [Commented] (CB-4629) DirectoryEntry.getDirectory -
misleading example code?
[ https://issues.apache.org/jira/browse/CB-4629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13751807#comment-13751807 ]
ASF subversion and git services commented on CB-4629:
-----------------------------------------------------
Commit fcd56a46a631edd50d511ac72381e5f230b806b7 in branch refs/heads/master from [~lorin]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;h=fcd56a4 ]
[CB-4629] changed parameter name in callback to reflect returned object
> DirectoryEntry.getDirectory - misleading example code?
> ------------------------------------------------------
>
> Key: CB-4629
> URL: https://issues.apache.org/jira/browse/CB-4629
> Project: Apache Cordova
> Issue Type: Bug
> Components: Docs
> Affects Versions: 2.9.0
> Reporter: Peter
> Assignee: Lorin Beer
> Priority: Minor
>
> The File API guide for the *DirectoryEntry.getDirectory* 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
--
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