Change a docstring into a comment.

This commit is contained in:
Emmanuel Gil Peyrot 2018-11-03 12:03:46 +01:00
parent 2991f81a10
commit 9a12afc702
2 changed files with 5 additions and 7 deletions

7
dist/converse.js vendored
View File

@ -59135,10 +59135,9 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_5__["default"].plugins
},
onDrop(evt) {
/* There are no files to be dropped, this isnt a file transfer
* operation.
*/
if (evt.dataTransfer.files.length == 0) return;
if (evt.dataTransfer.files.length == 0) // There are no files to be dropped, so this isnt a file
// transfer operation.
return;
evt.preventDefault();
this.model.sendFiles(evt.dataTransfer.files);
},

View File

@ -405,10 +405,9 @@ converse.plugins.add('converse-chatview', {
},
onDrop (evt) {
/* There are no files to be dropped, this isnt a file transfer
* operation.
*/
if (evt.dataTransfer.files.length == 0)
// There are no files to be dropped, so this isnt a file
// transfer operation.
return;
evt.preventDefault();
this.model.sendFiles(evt.dataTransfer.files);