You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Axel Nennker (JIRA)" <ji...@apache.org> on 2014/08/17 11:02:19 UTC

[jira] [Commented] (CB-7310) Add Promises Polyfill to cordova.js

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

Axel Nennker commented on CB-7310:
----------------------------------

(i) Already some Cordova plugins create a dependency on e.g. jquery to use jquery's Deferred type to get Promises-like behavior.
https://github.com/oauth-io/oauth-phonegap/blob/master/www/dist/oauth.js
Those plugins could get rid of this dependency if Cordova provides Promises in cordova.js


> Add Promises Polyfill to cordova.js
> -----------------------------------
>
>                 Key: CB-7310
>                 URL: https://issues.apache.org/jira/browse/CB-7310
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: CordovaJS
>         Environment: core
>            Reporter: Axel Nennker
>
> Newer W3C standards use Promises and by providing Promises in core Cordova would help implementers of these standards in Cordova a lot.
> http://www.html5rocks.com/en/tutorials/es6/promises/
> This feature does not mean that Cordova advocates for or against Promises.
> By providing Promises on platforms that do not provide them natively Cordova just helps to implement standards cross platform.



--
This message was sent by Atlassian JIRA
(v6.2#6252)