2009/dap/docs/feat-perms feat-perms.html,1.3,1.4

Update of /sources/public/2009/dap/docs/feat-perms
In directory hutz:/tmp/cvs-serv19207

Modified Files:
	feat-perms.html 
Log Message:
Minor: use the dot notation to access response properties (cleaner), make requestPermissions() plural for option B

Index: feat-perms.html
===================================================================
RCS file: /sources/public/2009/dap/docs/feat-perms/feat-perms.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- feat-perms.html	24 Mar 2011 08:48:44 -0000	1.3
+++ feat-perms.html	24 Mar 2011 13:31:16 -0000	1.4
@@ -84,7 +84,7 @@
     </div>
     <div class="example">
         <button onclick="evalScript()">Run</button>
-        <textarea id="example_custom">navigator.system.requestPermission(function(response) { log(response['system'].permission_level); });</textarea>
+        <textarea id="example_custom">navigator.system.requestPermission(function(response) { log(response.system.permission_level); });</textarea>
     </div>
 </div>
 
@@ -166,7 +166,7 @@
 }
 
 // the feature factory
-navigator.requestPermission(['foobar', 'baz'], success, error);
+navigator.requestPermissions(['foobar', 'baz'], success, error);
     </pre>
 
 <h2>Misc Notes</h2>

Received on Thursday, 24 March 2011 13:31:19 UTC