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

Sergey Shakhnazarov commented on CB-11522:
------------------------------------------

[~cnsdato], I'm pasting some details from related thread:
{quote}
I have 2 issues when kind is 
Windows.ApplicationModel.Activation.ActivationKind.file for file association:
1. The clone fails because neighboringFilesQuery.folder property is not 
accessible
2. When trying to read the StorageFile via 
Windows.Storage.FileIO.readTextAsync() I get a type mismatch.
{quote}

The first one is fixed if we modify the utils.clone method:
{code}
        if((!(i in retVal) || retVal[i] != obj[i]) && typeof obj[i] != 
'undefined') {
            retVal[i] = utils.clone(obj[i]);
        }
{code}

> Do not clone the detail object on activation context
> ----------------------------------------------------
>
>                 Key: CB-11522
>                 URL: https://issues.apache.org/jira/browse/CB-11522
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Windows
>            Reporter: Daniel Toplak
>            Priority: Blocker
>              Labels: reproduced, triaged, windows
>
> In some circumstances, cloning the detail object of the activation context 
> will fail. Esp. when launching the app via ActivationKind.file.
> The cloning of the detail object was introduced in 
> https://issues.apache.org/jira/browse/CB-10653
> See: https://github.com/apache/cordova-windows/pull/173#issuecomment-227366714



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to