[
https://issues.apache.org/jira/browse/CB-298?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259852#comment-13259852
]
Patrick Mueller commented on CB-298:
------------------------------------
It would be nice to print a single message out for each "deprecated" thing that
was accessed, but only the first time the "deprecated" thing is called, lest
folks deal with LOTS of duplicate messages.
Still not clear to me what our story is for plugins though. I sense we want to
have folks access plugins via {{require()}}. Perhaps the first thing we should
do is make sure the standard plugins actually work that way. Eg, what does
{{require("plugins/camera")}} (or whatever we decide to call the camera
plugin's module) return? Are the {{Camera}} object and the
{{navigator.camera}} object somehow smushed together?
> DEPRECATE "plugins" and "PhoneGap" global objects in JavaScript implementation
> ------------------------------------------------------------------------------
>
> Key: CB-298
> URL: https://issues.apache.org/jira/browse/CB-298
> 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:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira