Mercurial Hosting > sceditor
diff src/plugins/dragdrop.js @ 29:ea32a44b5a6e
remove more oo
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 11 Aug 2022 19:54:03 -0600 |
parents | b7725dab7482 |
children |
line wrap: on
line diff
--- a/src/plugins/dragdrop.js Thu Aug 11 00:04:48 2022 -0600 +++ b/src/plugins/dragdrop.js Thu Aug 11 19:54:03 2022 -0600 @@ -71,7 +71,7 @@ return; } - var base = this; + var base = {}; var opts; var editor; var handleFile; @@ -174,8 +174,8 @@ e.preventDefault(); } - base.signalReady = function () { - editor = this; + base.signalReady = function (ed) { + editor = ed; opts = editor.opts.dragdrop || {}; handleFile = opts.handleFile; @@ -218,5 +218,7 @@ paste.val = div.innerHTML; } }; + + return base; }; })(sceditor);