Skip to content

Dropbox JS interface improvement #2

Description

@shazron

https://github.com/ccoenraets/phonegap-dropbox-sync/blob/master/sample/js/dropbox.js#L7

I noticed that a capital C for Cordova is used -- we've added a mapping for this (there has been problems with the initial case) but there is a better way to avoid this potential problem.

The safe way to get the exec is to do a:

var exec = cordova.require("cordova/exec");

or an example of a pattern of defining your module: https://github.com/shazron/TestFlightPlugin/blob/master/www/testflight.js

In PhoneGap 3.0.0 there will be a way of installing and including your plugin js automatically using plugman, which follows that pattern (minus the cordova.define parts which will be added automatically) -- anyways that is another topic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions