cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-5079) Add settingsForKey function in CDVCommandDelegate (for plugins)
Date Tue, 21 Oct 2014 00:36:34 GMT


Shazron Abdullah commented on CB-5079:

Thinking that this is better off in CDVPlugin, for 4.0

> Add settingsForKey function in CDVCommandDelegate (for plugins)
> ---------------------------------------------------------------
>                 Key: CB-5079
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: iOS
>    Affects Versions: Master
>            Reporter: Shazron Abdullah
>            Priority: Minor
>             Fix For: 4.0.0
> Because the CDVConfigParser lowercases the keys for settings, everytime a plugin wants
to get a setting, it has to remember to lowercase the key (which can be error-prone).
> Have a function in the CDVCommandDelegate *settingsForKey* that helps with this, see
example here:
> However -- if a plugin uses this, it will not be compatible with earlier Cordova versions
< X if this gets implemented in X. So -- I'm hesitant to add this unless we can find a
"workaround" so it works in all Cordova versions. Maybe through some runtime magic / categories
etc, not sure yet, shouldn't be impossible since it's just a helper function.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message