Fix a typo in the definition of undoManager.transact. We insert a new entry in the undo transaction history only if merge is set to false, not true.
authorRyosuke Niwa <rniwa@webkit.org>
Fri, 08 Jun 2012 15:54:50 -0700
changeset 9 64708ca6aeca
parent 8 17a725399127
child 10 53943e40f7a0
Fix a typo in the definition of undoManager.transact. We insert a new entry in the undo transaction history only if merge is set to false, not true.
source.html
--- a/source.html	Wed May 30 00:11:51 2012 -0700
+++ b/source.html	Fri Jun 08 15:54:50 2012 -0700
@@ -191,7 +191,7 @@
             <var title="">merge</var>)</code></dt>
         <dd><p>Clears entries above the current undo position, <a href="#dom-transaction-apply">applies</a> <var title="">transaction</var>,
             and adds it to the beginning of the first entry in <a href="#undo-transaction-history">undo transaction history<a>,
-            or of a new <a href="#undo-transaction-history">undo transaction history<a> if <var title="">merge</var> is set to true.</p></dd>
+            or of a new <a href="#undo-transaction-history">undo transaction history<a> if <var title="">merge</var> is set to false.</p></dd>
 
         <dt><var title="">undoManager</var> . <code title="dom-UndoManager-undo"><a href="#dom-undomanager-undo">undo</a>()</code></dt>
         <dd><p>Unapplies all <a href="#dom-transaction">DOM transactions</a> in the entry immediately after
@@ -245,7 +245,7 @@
             <li>Clear all entries between before the current <a href="#undo-position">undo position</a> without <a href="#dom-transaction-unapply">unapplying</a>
             or <a href="#dom-transaction-reapply">reapplying</a> the <a href="#dom-transaction">transactions</a> in the entires.</code></li>
             <li><a href="#dom-transaction-apply">Apply</a> the <var title="">transaction</var>.</li>
-            <li>If <var title="">merge</var> is set to true, add an empty entry to the beginning of the <a href="#undo-transaction-history">undo transaction history</a>.</li>
+            <li>If <var title="">merge</var> is set to false, add an empty entry to the beginning of the <a href="#undo-transaction-history">undo transaction history</a>.</li>
             <li>Add the applied transaction to the beginning of the first entry in the <a href="#undo-transaction-history">undo transaction history</a>.</li>
             <li><a href="#fire-a-dom-transaction-event">Fire a DOM transaction event</a> for the transaction applied in step 3 at the <a href="#undo-scope-host">undo scope host</a>
             of this <code><a href="#undomanager">UndoManager</a></code> if the <code><a href="#undomanager">UndoManager</a></code> had not already been <a href="#disconnect-undomanager">disconnected</a>.</li>