You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2015/03/07 02:04:38 UTC

[jira] [Commented] (CB-7000) Remove deprecated CDVPlugin and CDVPluginResult methods

    [ https://issues.apache.org/jira/browse/CB-7000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14351254#comment-14351254 ] 

ASF subversion and git services commented on CB-7000:
-----------------------------------------------------

Commit ffdf7742fecee6dc75e2fb31686aec1a13d2560f in cordova-ios's branch refs/heads/4.0.x from [~shazron]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=ffdf774 ]

CB-7000 - Remove deprecated CDVPlugin and CDVPluginResult methods


> Remove deprecated CDVPlugin and CDVPluginResult methods
> -------------------------------------------------------
>
>                 Key: CB-7000
>                 URL: https://issues.apache.org/jira/browse/CB-7000
>             Project: Apache Cordova
>          Issue Type: Task
>          Components: iOS
>            Reporter: Shazron Abdullah
>             Fix For: 4.0.0
>
>
> https://github.com/apache/cordova-ios/blob/0bf656c3bccbe85813964bcf13c6705e0da37192/CordovaLib/Classes/CDVPlugin.h#L61-L66
> // Deprecate these in favour of using CDVCommandDelegate directly.
> // - (NSString*)writeJavascript:(NSString*)javascript;
> // - (NSString*)success:(CDVPluginResult*)pluginResult callbackId:(NSString*)callbackId;
> // - (NSString*)error:(CDVPluginResult*)pluginResult callbackId:(NSString*)callbackId;
> These are remnants of how older plugins used pluginResult and are not doc'ed anymore since 3.x (it was in 2.x). Time to migrate people.
> Also, CDVPluginResult corresponding methods should be removed as well:
> https://github.com/apache/cordova-ios/blob/0bf656c3bccbe85813964bcf13c6705e0da37192/CordovaLib/Classes/CDVPluginResult.h#L63-L66



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org