guarantee async behaviour when creating thumbnails
This commit is contained in:
parent
2799a69b3a
commit
86f23dcfc0
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ define([
|
|||
reader.readAsText(blob);
|
||||
};
|
||||
Thumb.fromBlob = function (blob, _cb) {
|
||||
var cb = Util.once(_cb);
|
||||
var cb = Util.once(Util.mkAsync(_cb));
|
||||
// The blob is already in memory, it should be super-fast to make a thumbnail
|
||||
// ==> 1s timeout
|
||||
setTimeout(function () {
|
||||
|
|
Loading…
Reference in a new issue