incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse MacFadyen (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-155) localStorage does not work with square brace notation
Date Thu, 05 Jan 2012 16:31:40 GMT

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

Jesse MacFadyen commented on CB-155:
------------------------------------

This is a known issue. Cannot create a setter for an unknown property.
Getters can use array notation because the keys are known.
As Patrick suggests, this is not possible until ecma harmony.
Use getItem and setItem.

Cheers,
  Jesse

Sent from my iPhone5

On 2012-01-05, at 6:29 AM, "Patrick Mueller (Commented) (JIRA)"


                
> 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

        

Mime
View raw message