Fix typos per Caio Marcelo de Oliveira Filho's comment.
--- a/source.html Fri Jun 08 16:00:07 2012 -0700
+++ b/source.html Wed Jul 04 14:50:23 2012 -0700
@@ -632,8 +632,8 @@
<code><a href="#dom-domtransaction-execute">execute</a></code> and <code><a href="#dom-domtransaction-undo">undo</a></code> attributes are modified:</p>
<pre>
-document.undoManager.transact({ executeAutomatic: function () {
- this.executeAutomatic = function () { alert('foo'); }
+document.undoManager.transact({ execute: function () {
+ this.execute = function () { alert('foo'); }
alert('bar');
}, undo: function () { alert('baz'); } }); // alerts 'bar'
document.undoManager.item(0)[0].undo = function() { alert('foobar'); }
@@ -649,14 +649,14 @@
<div class="example">
<p>All <a href="#dom-changes">DOM changes</a> made in <code><a href="#dom-domtransaction-execute">execute</a></code> or
- <code><a id="dom-domtransaction-executeautomatic">executeAutomatic</a></code> take effect immediately.
+ <code><a href="#dom-domtransaction-executeautomatic">executeAutomatic</a></code> take effect immediately.
Sometimes, this <a href="#disconnect-undomanager">disconnects</a> the undoManager to which it belongs.</p>
<pre>
var scope = document.createElement('div');
scope.undoScope = true;
document.body.appendChild(scope);
-scope.undoManager.transact({execute: function () {
+scope.undoManager.transact({executeAutomatic: function () {
scope.appendChild("foo");
alert(scope.textContent); // "foo"
scope.undoScope = false;
@@ -754,13 +754,13 @@
It provides a way to communicate with user agent's <a href="#undo-transaction-history">undo transaction history</a>, e.g. to populate user agent's undo menu.</p>
<div class="impl">
- <p>When a <a href="#manual-dom-transaction">manual DOM transaction</a> is <a href="#dom-transaction-apply">applied</a>, the user agnet must call
+ <p>When a <a href="#manual-dom-transaction">manual DOM transaction</a> is <a href="#dom-transaction-apply">applied</a>, the user agent must call
the function returned by the <code><a id="dom-domtransaction-execute">execute</a></code> if the attribute returns a valid function object.</p>
- <p>When a <a href="#manual-dom-transaction">manual DOM transaction</a> is <a href="#dom-transaction-unapply">unapplied</a>, the user agnet must call
+ <p>When a <a href="#manual-dom-transaction">manual DOM transaction</a> is <a href="#dom-transaction-unapply">unapplied</a>, the user agent must call
the function returned by the <code><a id="dom-domtransaction-undo">undo</a></code> attribute if the attribute returns a valid function object.</p>
- <p>When a <a href="#manual-dom-transaction">manual DOM transaction</a> is <a href="#dom-transaction-reapply">reapplied</a>, the user agnet must call
+ <p>When a <a href="#manual-dom-transaction">manual DOM transaction</a> is <a href="#dom-transaction-reapply">reapplied</a>, the user agent must call
the function returned by the <code><a id="dom-domtransaction-redo">redo</a></code> attribute if the attribute returns a valid function object.</p>
</div>
--- a/undomanager.html Fri Jun 08 16:00:07 2012 -0700
+++ b/undomanager.html Wed Jul 04 14:50:23 2012 -0700
@@ -657,8 +657,8 @@
or <code><a href=#dom-domtransaction-redo>redo</a></code> attributes will take effect immediately. In the following example,
<code><a href=#dom-domtransaction-execute>execute</a></code> and <code><a href=#dom-domtransaction-undo>undo</a></code> attributes are modified:</p>
- <pre>document.undoManager.transact({ executeAutomatic: function () {
- this.executeAutomatic = function () { alert('foo'); }
+ <pre>document.undoManager.transact({ execute: function () {
+ this.execute = function () { alert('foo'); }
alert('bar');
}, undo: function () { alert('baz'); } }); // alerts 'bar'
document.undoManager.item(0)[0].undo = function() { alert('foobar'); }
@@ -674,13 +674,13 @@
<div class=example>
<p>All <a href=#dom-changes>DOM changes</a> made in <code><a href=#dom-domtransaction-execute>execute</a></code> or
- <code><a id=dom-domtransaction-executeautomatic>executeAutomatic</a></code> take effect immediately.
+ <code><a href=#dom-domtransaction-executeautomatic>executeAutomatic</a></code> take effect immediately.
Sometimes, this <a href=#disconnect-undomanager>disconnects</a> the undoManager to which it belongs.</p>
<pre>var scope = document.createElement('div');
scope.undoScope = true;
document.body.appendChild(scope);
-scope.undoManager.transact({execute: function () {
+scope.undoManager.transact({executeAutomatic: function () {
scope.appendChild("foo");
alert(scope.textContent); // "foo"
scope.undoScope = false;
@@ -775,13 +775,13 @@
It provides a way to communicate with user agent's <a href=#undo-transaction-history>undo transaction history</a>, e.g. to populate user agent's undo menu.</p>
<div class=impl>
- <p>When a <a href=#manual-dom-transaction>manual DOM transaction</a> is <a href=#dom-transaction-apply>applied</a>, the user agnet must call
+ <p>When a <a href=#manual-dom-transaction>manual DOM transaction</a> is <a href=#dom-transaction-apply>applied</a>, the user agent must call
the function returned by the <code><a id=dom-domtransaction-execute>execute</a></code> if the attribute returns a valid function object.</p>
- <p>When a <a href=#manual-dom-transaction>manual DOM transaction</a> is <a href=#dom-transaction-unapply>unapplied</a>, the user agnet must call
+ <p>When a <a href=#manual-dom-transaction>manual DOM transaction</a> is <a href=#dom-transaction-unapply>unapplied</a>, the user agent must call
the function returned by the <code><a id=dom-domtransaction-undo>undo</a></code> attribute if the attribute returns a valid function object.</p>
- <p>When a <a href=#manual-dom-transaction>manual DOM transaction</a> is <a href=#dom-transaction-reapply>reapplied</a>, the user agnet must call
+ <p>When a <a href=#manual-dom-transaction>manual DOM transaction</a> is <a href=#dom-transaction-reapply>reapplied</a>, the user agent must call
the function returned by the <code><a id=dom-domtransaction-redo>redo</a></code> attribute if the attribute returns a valid function object.</p>
</div>