You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Misha Rabinovich (JIRA)" <ji...@apache.org> on 2016/08/08 15:12:20 UTC

[jira] [Commented] (CB-11678) JS Default Function Parameters Breaks iOS

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

Misha Rabinovich commented on CB-11678:
---------------------------------------

Thanks a lot!

On Mon, Aug 8, 2016 at 2:55 AM Shazron Abdullah (JIRA) <ji...@apache.org>



> JS Default Function Parameters Breaks iOS
> -----------------------------------------
>
>                 Key: CB-11678
>                 URL: https://issues.apache.org/jira/browse/CB-11678
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 6.3.0
>         Environment: Mac OS X
>            Reporter: Misha Rabinovich
>              Labels: build
>
> Thank you for your amazing work on Cordova. I noticed that if I use EcmaScript 6 JavaScript default function parameters then onDeviceReady never fires on iOS (but does on android). Removing these parameters from function definition fixes the problem.
> Bad:
> function doStuff(param = false) {
> }
> Works:
> function doStuff(param) {
> }



--
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