diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-03-15 16:54:28 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-03-15 16:54:28 -0700 |
commit | 7e78583ff2d44d669d969054e46167a0fb865b21 (patch) | |
tree | 9fa5c4fb7d4da7e9d8d1c7c241299cdb2ffc99ab | |
parent | 470919bea98605f382f82a0ff76f53cb0faa4f90 (diff) |
comment
-rw-r--r-- | src/library_browser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index b733bfbd..55de7a5c 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -33,7 +33,7 @@ mergeInto(LibraryManager.library, { } var image = new Image(); image.src = 'data:image/' + format + ';base64,' + encodeBase64(pixels); - assert(image.complete, 'Image could not be decoded'); // page reload might fix it, decoding is async... + assert(image.complete, 'Image could not be decoded'); // page reload might fix it, decoding is async... need .onload handler... var canvas = document.createElement('canvas'); canvas.width = image.width; canvas.height = image.height; |