mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Rename DomEvent.getElement() -> getTarget().
This commit is contained in:
parent
725499dc2e
commit
07cfaf8662
1 changed files with 2 additions and 2 deletions
|
@ -54,14 +54,14 @@ var DomEvent = {
|
|||
);
|
||||
},
|
||||
|
||||
getElement: function(event) {
|
||||
getTarget: function(event) {
|
||||
return event.target || event.srcElement;
|
||||
},
|
||||
|
||||
getOffset: function(event, target) {
|
||||
// Remove target offsets from page coordinates
|
||||
return DomEvent.getPoint(event).subtract(
|
||||
DomElement.getOffset(target || DomEvent.getElement(event), true));
|
||||
DomElement.getOffset(target || DomEvent.getTarget(event), true));
|
||||
},
|
||||
|
||||
preventDefault: function(event) {
|
||||
|
|
Loading…
Reference in a new issue