mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Update Editor.js
Removed duplicated lines of code, some sort of copy + paste fudging with atom.
This commit is contained in:
parent
299d45bbb9
commit
bdad24c70f
1 changed files with 1 additions and 2 deletions
|
@ -57,8 +57,7 @@ function Squire ( doc, config ) {
|
||||||
this.addEventListener( 'mouseup', this._updatePathOnEvent );
|
this.addEventListener( 'mouseup', this._updatePathOnEvent );
|
||||||
|
|
||||||
// Prevents redirecting dropped files, event can then be captured with editor.addEventListener in the host document
|
// Prevents redirecting dropped files, event can then be captured with editor.addEventListener in the host document
|
||||||
this.addEventListener('dragover', this.addEventListener('dragover', this.preventDefaultEvent);
|
this.addEventListener('dragover', this.preventDefaultEvent);
|
||||||
this.addEventListener('drop', this.preventDefaultEvent);
|
|
||||||
this.addEventListener('drop', this.preventDefaultEvent);
|
this.addEventListener('drop', this.preventDefaultEvent);
|
||||||
|
|
||||||
win.addEventListener( 'focus', this, false );
|
win.addEventListener( 'focus', this, false );
|
||||||
|
|
Loading…
Reference in a new issue