Replace lodash/every by Array.prototype.every function

pull/21833/head
Alexandr Korsak 2017-12-18 15:51:01 +03:00
parent c07c4fd1cb
commit 78af02b29b
1 changed files with 2 additions and 4 deletions

View File

@ -45,8 +45,6 @@ import RoomViewStore from '../../stores/RoomViewStore';
import RoomScrollStateStore from '../../stores/RoomScrollStateStore';
import SettingsStore from "../../settings/SettingsStore";
import _every from "lodash/every";
const DEBUG = false;
let debuglog = function() {};
@ -856,9 +854,9 @@ module.exports = React.createClass({
ev.dataTransfer.dropEffect = 'none';
const items = ev.dataTransfer.items;
const items = [...ev.dataTransfer.items];
if (items.length >= 1) {
const isDraggingFiles = _every(items, function(item) {
const isDraggingFiles = items.every(function(item) {
return item.kind == 'file';
});