incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (Commented) (JIRA)" <>
Subject [jira] [Commented] (CB-298) DEPRECATE "plugins" and "PhoneGap" global objects in JavaScript implementation
Date Wed, 28 Mar 2012 18:31:29 GMT


Filip Maj commented on CB-298:

After the PhoneGap object gets dropped down/created, can we override the PhoneGap.exec method
by wrapping it in another function, similar to what the deprecation notice in the entire PhoneGap
object did before, something like:

var oldExec = PhoneGap.exec;
PhoneGap.exec = function() {
  oldExec.apply(PhoneGap, arguments);

That should work ya?
> 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
>            Reporter: Filip Maj
>            Assignee: Simon MacDonald
>            Priority: Minor
>              Labels: api-change, javascript
>             Fix For: 1.6.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