From 2763ca4de7ebb5743e707fd8848624c45c80b57b Mon Sep 17 00:00:00 2001 From: tjcrowder Date: Sat, 22 Aug 2009 12:37:10 +0100 Subject: [PATCH] doc: Minor modifications to Event.observe. --- src/dom/event.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dom/event.js b/src/dom/event.js index bd47f6f..af7f01d 100644 --- a/src/dom/event.js +++ b/src/dom/event.js @@ -403,7 +403,7 @@ * * Prototype figures out whether to use `addEventListener` (W3C standard) or * `attachEvent` (MSIE); you don't have to worry about it. * * The handler is passed an _extended_ [[Event]] object (even on MSIE). - * * The handler's context (`this` value) is set to the instance of the element being observed + * * The handler's context (`this` value) is set to the extended element being observed * (even if the event actually occurred on a descendent element and bubbled up). * * Prototype handles cleaning up the handler when leaving the page (important for MSIE memory * leak prevention). @@ -473,7 +473,7 @@ * var clickedRow; * clickedRow = event.findElement('tr'); * if (clickedRow) { - * this.down('th').update("You clicked record #" + clickedRow.getAttribute("data-recnum")); + * this.down('th').update("You clicked record #" + clickedRow.readAttribute("data-recnum")); * } * }); *