Make Event.element extend the returned element. Closes #7870.
This commit is contained in:
parent
68f3b219e0
commit
bbd0e6eb54
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue