Overview.src.html
changeset 13 e6822fd2e4f2
parent 12 c115a6e7895e
child 14 b7484c2b2d43
--- a/Overview.src.html	Tue Jun 12 15:15:21 2012 +0200
+++ b/Overview.src.html	Fri Jun 15 10:37:28 2012 +0200
@@ -562,39 +562,29 @@
 
 <h3>Using events</h3>
 
-<p>
-	Notification objects dispatch events during their lifecycle, which authors can use
-	to generate desired behaviors.
-      </p>
-      <p>
-	The <code>show</code> event occurs when the notification is shown to the user --
-	this may be at some time after the notification is created in the case
-	of limited display space and a queue.
-      </p>
-
-      <p>
-	In the following example, this event is used to guarantee that regardless of when
-	the notification is shown, it is displayed for only 15 seconds.
-      </p>
+<p><code>Notification</code> objects dispatch events during their lifecycle,
+which developers can use to generate desired behaviors.
 
-<pre class="example">new Notification("New Email Received",
-                 { iconUrl: "mail.png",
-                   onshow: function() { setTimeout(notification.close(), 15000); }
-                 });</pre>
-
-<p>The <code>close</code> events occurs when the notification is dismissed by the user.
-	Authors may use this event to perform actions when notifications are acknowledged.
+<p>The <code title=event-show>show</code> event dispatches when the
+<span title=concept-notification>notification</span> is shown to the user
+&mdash; this may be at some time after the notification is created in the
+case of limited display space and a queue.
 
-<p>
-	In the following example, when a meeting reminder notification is acknowledged, the
-	application suppresses other forms of reminders.
-      </p>
+<p>In the following example, this event is used to guarantee that regardless
+of when the notification is shown, it is displayed for only 15 seconds.
 
-<pre class="example">new Notification("Meeting about to begin",
-                 { iconUrl: "calendar.gif",
-                   body: "Room 101",
-                   onclose: function() { cancelReminders(event); }
-                 });</pre>
+<pre class="example">var notification = new Notification("New Email Received", { iconUrl: "mail.png" })
+notification.onshow = function() { setTimeout(notification.close(), 15000) }</pre>
+
+<p>The <code title=event-close>close</code> events dispatches when the
+notification is dismissed by the user. Developers may use this event to
+perform actions when notifications are acknowledged.
+
+<p>In the following example, when a meeting reminder notification is
+acknowledged, the application suppresses other forms of reminders.
+
+<pre class="example">var notification = new Notification("Meeting about to begin", { iconUrl: "calendar.gif", body: "Room 101" })
+notification.onclose = function(event) { cancelReminders(event) }</pre>
 
 
 <h3 id="tags-example">Using the <code title>tag</code> member for multiple instances</h3>