W3C home > Mailing lists > Public > public-dap-commits@w3.org > July 2011

2009/dap/contacts Overview.html,1.149,1.150

From: Robin Berjon via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 19 Jul 2011 12:05:44 +0000
To: public-dap-commits@w3.org
Message-Id: <E1Qj93Y-0006io-Bq@lionel-hutz.w3.org>
Update of /sources/public/2009/dap/contacts
In directory hutz:/tmp/cvs-serv25824/contacts

Modified Files:
	Overview.html 
Log Message:
fixed examples as well

Index: Overview.html
===================================================================
RCS file: /sources/public/2009/dap/contacts/Overview.html,v
retrieving revision 1.149
retrieving revision 1.150
diff -u -d -r1.149 -r1.150
--- Overview.html	19 Jul 2011 12:04:12 -0000	1.149
+++ Overview.html	19 Jul 2011 12:05:42 -0000	1.150
@@ -165,7 +165,6 @@
         // Perform an address book search. Obtain the 'name' and 'emails' properties 
         // and initially filter the list to Contact records containing 'Bob':
         navigator.contacts.find(  ['name', 'emails'], success, error, {filter: 'Bob'} );
-        // ..is equivalent to: navigator.contacts(/* parameters */)
       </pre>
     </section>
 
@@ -1330,11 +1329,10 @@
     function getContacts() {
       // Perform an address book search. Obtain the 'name' and 'emails' properties 
       // and initially filter the list to Contact records containing 'Bob':
-      navigator.contacts( ['name', 'emails'],
-                          successContactFindCallback, 
-                          generalErrorCB,
-                          { filter: 'Bob' } ); 
-      // is equivalent to: navigator.contacts.find(/* parameters */);
+      navigator.contacts.find( ['name', 'emails'],
+                              successContactFindCallback, 
+                              generalErrorCB,
+                              { filter: 'Bob' } ); 
     }
   &lt;/script&gt;
   </pre>
Received on Tuesday, 19 July 2011 12:05:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 12:05:48 GMT