Changeset 297
- Timestamp:
- 10/15/05 01:12:43 (3 years ago)
- Files:
-
- mochikit/trunk/doc/html/MochiKit/Base.html (modified) (2 diffs)
- mochikit/trunk/doc/html/MochiKit/DOM.html (modified) (1 diff)
- mochikit/trunk/doc/html/MochiKit/DateTime.html (modified) (1 diff)
- mochikit/trunk/doc/rst/MochiKit/Base.rst (modified) (2 diffs)
- mochikit/trunk/doc/rst/MochiKit/DOM.rst (modified) (1 diff)
- mochikit/trunk/doc/rst/MochiKit/DateTime.rst (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
mochikit/trunk/doc/html/MochiKit/Base.html
r286 r297 83 83 <p>The comparators (operators for comparison) in JavaScript are deeply broken, 84 84 and it is not possible to teach them new tricks.</p> 85 <p> The extensible comparison facility exposed by MochiKitas a simple85 <p>MochiKit exposes an extensible comparison facility as a simple 86 86 <tt class="docutils literal"><span class="pre">compare(a,</span> <span class="pre">b)</span></tt> function, which should be used in lieu of JavaScript's 87 87 operators whenever comparing objects other than numbers or strings (though you … … 126 126 is compact, fast, and much simpler to use for most purposes.</p> 127 127 <p>To create a JSON serialization of any object, simply call <tt class="docutils literal"><span class="pre">serializeJSON()</span></tt> 128 with that object. To u se unserialize a JSON string, simply call <tt class="docutils literal"><span class="pre">evalJSON()</span></tt>128 with that object. To unserialize a JSON string, simply call <tt class="docutils literal"><span class="pre">evalJSON()</span></tt> 129 129 with the serialization.</p> 130 130 <p>In order of precedence, <tt class="docutils literal"><span class="pre">serializeJSON</span></tt> coerces the given argument into a mochikit/trunk/doc/html/MochiKit/DOM.html
r292 r297 68 68 <li>Functions are called with a <tt class="docutils literal"><span class="pre">this</span></tt> of the parent 69 69 node and their return value is subject to the 70 following rules (even this one) </li>70 following rules (even this one).</li> 71 71 <li><tt class="docutils literal"><span class="pre">undefined</span></tt> and <tt class="docutils literal"><span class="pre">null</span></tt> are ignored.</li> 72 72 <li>Iterables (see <a class="reference" href="Iter.html">MochiKit.Iter</a>) are flattened mochikit/trunk/doc/html/MochiKit/DateTime.html
r180 r297 18 18 <pre class="literal-block"> 19 19 stringDate = toISOTimestamp(new Date()); 20 da eObject = isoTimestamp(stringDate);20 dateObject = isoTimestamp(stringDate); 21 21 </pre> 22 22 </div> mochikit/trunk/doc/rst/MochiKit/Base.rst
r286 r297 84 84 and it is not possible to teach them new tricks. 85 85 86 The extensible comparison facility exposed by MochiKitas a simple86 MochiKit exposes an extensible comparison facility as a simple 87 87 ``compare(a, b)`` function, which should be used in lieu of JavaScript's 88 88 operators whenever comparing objects other than numbers or strings (though you … … 137 137 138 138 To create a JSON serialization of any object, simply call ``serializeJSON()`` 139 with that object. To u se unserialize a JSON string, simply call ``evalJSON()``139 with that object. To unserialize a JSON string, simply call ``evalJSON()`` 140 140 with the serialization. 141 141 mochikit/trunk/doc/rst/MochiKit/DOM.rst
r292 r297 74 74 1. Functions are called with a ``this`` of the parent 75 75 node and their return value is subject to the 76 following rules (even this one) 76 following rules (even this one). 77 77 2. ``undefined`` and ``null`` are ignored. 78 78 3. Iterables (see `MochiKit.Iter`_) are flattened mochikit/trunk/doc/rst/MochiKit/DateTime.rst
r180 r297 13 13 14 14 stringDate = toISOTimestamp(new Date()); 15 da eObject = isoTimestamp(stringDate);15 dateObject = isoTimestamp(stringDate); 16 16 17 17
