[html5] r5315 - [e] (0) example intro correction Fixing http://www.w3.org/Bugs/Public/show_bug.c [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri Aug 20 12:20:37 PDT 2010
Author: ianh
Date: 2010-08-20 12:20:36 -0700 (Fri, 20 Aug 2010)
New Revision: 5315
Modified:
source
Log:
[e] (0) example intro correction
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=8814
Modified: source
===================================================================
--- source 2010-08-20 19:17:45 UTC (rev 5314)
+++ source 2010-08-20 19:20:36 UTC (rev 5315)
@@ -86816,12 +86816,9 @@
<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) {
More information about the Commit-Watchers
mailing list