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

Colin Eberhardt commented on CB-155:
------------------------------------

That's pretty nasty. I understand the lack of getter / setter is the underlying 
issue here. However, if I take a fully functional web-app and place it within 
WP7 PhoneGap I get no warning that my localStorage code is failing or why it 
fails. It took me a while to uncover this issue!

A couple of suggestions

1. When the PhoneGap application terminates, iterate the properties of 
localStorage and persist at this point. It is not necessary to persist each 
time a property is set.
2. if you cannot do the above, at least provide a debug warning if the user has 
added properties to localStorage!

Regards, Colin E.
                
> localStorage does not work with square brace notation
> -----------------------------------------------------
>
>                 Key: CB-155
>                 URL: https://issues.apache.org/jira/browse/CB-155
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: WP7
>    Affects Versions: 1.3.0
>            Reporter: Colin Eberhardt
>            Assignee: Jesse MacFadyen
>
> Currently the WP7 localStorage shim works if you use localStorage setItem / 
> getItem methods, however, it fails if you use the square brace notation:
> localStorage["key"] = someValue;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to