- From: Anssi Kostiainen via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 24 Mar 2011 13:31:18 +0000
- To: public-dap-commits@w3.org
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