mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-05-01 18:14:43 +00:00
Issue #64 - inhibitDefault is now accessible from within EventHandlers.
This commit is contained in:
parent
c6689c9985
commit
90add2993d
3 changed files with 4 additions and 4 deletions
|
|
@ -113,11 +113,11 @@ const EventHandlers: EventHandlers = {
|
|||
* @param {DragEvent} event
|
||||
* returns {Event}
|
||||
*/
|
||||
onDragEnter: function (event: DragEvent ): Event {
|
||||
onDragEnter: function (event: DragEvent): Event {
|
||||
|
||||
event.dataTransfer.dropEffect = 'copy';
|
||||
|
||||
return this.inhibitDefault(event)
|
||||
return EventHandlers.inhibitDefault(event)
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ var EventHandlers = {
|
|||
*/
|
||||
onDragEnter: function (event) {
|
||||
event.dataTransfer.dropEffect = 'copy';
|
||||
return this.inhibitDefault(event);
|
||||
return EventHandlers.inhibitDefault(event);
|
||||
}
|
||||
};
|
||||
/**
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue