From bbd0e6eb546d2153b131ebc20b28ef375dbefedd Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Tue, 17 Apr 2007 17:31:20 +0000 Subject: [PATCH] Make Event.element extend the returned element. Closes #7870. --- src/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event.js b/src/event.js index e8da7c8..4bdfc2b 100644 --- a/src/event.js +++ b/src/event.js @@ -18,7 +18,7 @@ Object.extend(Event, { KEY_PAGEDOWN: 34, element: function(event) { - return event.target || event.srcElement; + return $(event.target || event.srcElement); }, isLeftClick: function(event) {