You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Bas Bosman (JIRA)" <ji...@apache.org> on 2014/02/21 22:15:25 UTC
[jira] [Resolved] (CB-5190) Storage API docs Uncaught
ReferenceError
[ 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)