From 661abcfcdb6475b8292f700e6a45c76adfc1243a Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 25 May 2017 08:54:05 +0900 Subject: [PATCH] (Refactor) Use for...of --- src/web/app/common/tags/messaging/form.tag | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/web/app/common/tags/messaging/form.tag b/src/web/app/common/tags/messaging/form.tag index 97b1b7c446..cddf1c4061 100644 --- a/src/web/app/common/tags/messaging/form.tag +++ b/src/web/app/common/tags/messaging/form.tag @@ -122,8 +122,7 @@ this.onpaste = e => { const data = e.clipboardData; const items = data.items; - for (let i = 0; i < items.length; i++) { - const item = items[i]; + for (item of items) { if (item.kind == 'file') { this.upload(item.getAsFile()); }