diff --git a/source/Editor.js b/source/Editor.js index d0656a5..49b694f 100644 --- a/source/Editor.js +++ b/source/Editor.js @@ -57,8 +57,7 @@ function Squire ( doc, config ) { this.addEventListener( 'mouseup', this._updatePathOnEvent ); // 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('drop', this.preventDefaultEvent); + this.addEventListener('dragover', this.preventDefaultEvent); this.addEventListener('drop', this.preventDefaultEvent); win.addEventListener( 'focus', this, false );