incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (JIRA)" <>
Subject [jira] [Commented] (CB-298) DEPRECATE "plugins" and "PhoneGap" global objects in JavaScript implementation
Date Tue, 24 Apr 2012 22:32:05 GMT


Filip Maj commented on CB-298:

Plugin story is being worked out in the PluginDesign wiki article and the recent "Pluginzation
FTW" thread on the mailing list. Let's keep the discussion to ML and the PluginDesign draft.

As for this issue, how about, as a happy medium, we implement deprecation notices for the
{{PhoneGap}} and {{Cordova}} global object's methods, but route it through some mechanism
that Pat suggests, wherein each deprecation notice only {{console.log}}s its message once.
This should satisfy concerns about performance and also provide enough warning for our users.

> DEPRECATE "plugins" and "PhoneGap" global objects in JavaScript implementation
> ------------------------------------------------------------------------------
>                 Key: CB-298
>                 URL:
>             Project: Apache Callback
>          Issue Type: Improvement
>          Components: CordovaJS
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0
>            Reporter: Filip Maj
>            Assignee: Filip Maj
>            Priority: Minor
>              Labels: api-change, javascript
>             Fix For: 1.7.0
> There are two globals currently defined in Cordova-JS' common platform definition, which
get dropped onto the `window` object: `plugins` and `PhoneGap`.
> Let's slate these for removal.
> In 1.6, let's set up deprecation notices for these.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message