diff options
author | Freeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace> | 2013-04-14 14:07:32 +1200 |
---|---|---|
committer | Freeyorp <TheFreeYorp@NOSPAM.G.m.a.i.l.replace> | 2013-04-14 14:08:54 +1200 |
commit | 57844182c17e1fce9e0f9db6dac3113e8de2010b (patch) | |
tree | 50f149b5a1d1f188d6c2f16b3e697356665b5140 | |
parent | 5a41d5cb432baa48f2e988b55308fb8efd7710ae (diff) | |
download | manavis-57844182c17e1fce9e0f9db6dac3113e8de2010b.tar.gz manavis-57844182c17e1fce9e0f9db6dac3113e8de2010b.tar.bz2 manavis-57844182c17e1fce9e0f9db6dac3113e8de2010b.tar.xz manavis-57844182c17e1fce9e0f9db6dac3113e8de2010b.zip |
Do not sleep before starting next file load
File loading is an asynchronous operation anyway, this is unnecessary.
-rw-r--r-- | js/mv/load.js | 4 |
1 files 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); |