[html5] r2573 - [e] (0) Explain parseInt() usage. (credit: pt)

whatwg at whatwg.org whatwg at whatwg.org
Wed Dec 24 04:20:08 PST 2008


Author: ianh
Date: 2008-12-24 04:20:07 -0800 (Wed, 24 Dec 2008)
New Revision: 2573

Modified:
   index
   source
Log:
[e] (0) Explain parseInt() usage. (credit: pt)

Modified: index
===================================================================
--- index	2008-12-24 12:17:50 UTC (rev 2572)
+++ index	2008-12-24 12:20:07 UTC (rev 2573)
@@ -38537,6 +38537,10 @@
   document.getElementById('count').textContent = localStorage.pageLoadCount;
 </script></pre>
 
+   <p>The use of <code title="">parseInt()</code> is needed when
+   dealing with numbers (integers in this case) because the storage
+   APIs are all string-based.</p>
+
   </div>
 
   <p>Each site has its own separate storage area.</p>

Modified: source
===================================================================
--- source	2008-12-24 12:17:50 UTC (rev 2572)
+++ source	2008-12-24 12:20:07 UTC (rev 2573)
@@ -43887,6 +43887,10 @@
   document.getElementById('count').textContent = localStorage.pageLoadCount;
 </script></pre>
 
+   <p>The use of <code title="">parseInt()</code> is needed when
+   dealing with numbers (integers in this case) because the storage
+   APIs are all string-based.</p>
+
   </div>
 
   <p>Each site has its own separate storage area.</p>




More information about the Commit-Watchers mailing list