cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bas Bosman (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CB-5190) Storage API docs Uncaught ReferenceError
Date Fri, 21 Feb 2014 21:15:25 GMT

     [ https://issues.apache.org/jira/browse/CB-5190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bas Bosman resolved CB-5190.
----------------------------

    Resolution: Fixed

The current documentation no longer contains that piece of sample code

> Storage API docs Uncaught ReferenceError
> ----------------------------------------
>
>                 Key: CB-5190
>                 URL: https://issues.apache.org/jira/browse/CB-5190
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Docs
>    Affects Versions: 3.1.0
>         Environment: All
>            Reporter: Angela Fowler
>            Priority: Trivial
>
> The full example for local storage has an undefined variable "i"
> http://cordova.apache.org/docs/en/3.1.0/cordova_storage_storage.md.html#localStorage
> 10-23 02:34:45.200: E/Web Console(1322): Uncaught ReferenceError: i is not defined at
file:///android_asset/www/LocalStorageExample.html:17
> ...
>     function onDeviceReady() {
>         window.localStorage.setItem("key", "value");
>         var keyname = window.localStorage.key(i);



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message