Skip to content

Commit

Permalink
[e] (0) example intro correction
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8814

git-svn-id: http://svn.whatwg.org/webapps@5315 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 20, 2010
1 parent 7d82a45 commit c09b6d6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions source
Expand Up @@ -86816,12 +86816,9 @@ interface <span>WindowLocalStorage</span> {

<p>Here is an example of a script using this API. First, a function
<code title="">prepareDatabase()</code> is defined. This function
tries to create the database if necessary, giving it one table
called "docids" with two columns ("id" and "name"). If it is
successful, or if the table doesn't need creating, it calls a
section function, <code title="">getDatabase()</code>, which obtains
a handle to the database, and then calls the function to do the
actual work, in this case <code title="">showDocCount()</code>.</p>
returns a handle to the database, first creating the database if
necessary. The example then calls the function to do the actual
work, in this case <code title="">showDocCount()</code>.</p>

<pre>function prepareDatabase(ready, error) {
return openDatabase('documents', '1.0', 'Offline document storage', 5*1024*1024, function (db) {
Expand Down

0 comments on commit c09b6d6

Please sign in to comment.