From 57844182c17e1fce9e0f9db6dac3113e8de2010b Mon Sep 17 00:00:00 2001 From: Freeyorp Date: Sun, 14 Apr 2013 14:07:32 +1200 Subject: Do not sleep before starting next file load File loading is an asynchronous operation anyway, this is unnecessary. --- js/mv/load.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mv/load.js b/js/mv/load.js index 2eca272..39dd391 100644 --- a/js/mv/load.js +++ b/js/mv/load.js @@ -47,9 +47,9 @@ var mv = function(mv) { } else { nextFile(); } - } + }; function nextFile() { - setTimeout(function(){ console.log("Loading file ", curfile); reader.readAsBinaryString(fevt.target.files[curfile]);}, 0); + reader.readAsBinaryString(fevt.target.files[curfile]); } nextFile(); }, false); -- cgit v1.2.3-60-g2f50